From ae487fc71aa6f11e6adadf36f589d03a1063dc02 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Sep 2018 12:33:17 +0200 Subject: [PATCH] committing changes in /etc after apt run Package changes: +fhem 5.8 all +libdevice-serialport-perl 1.04-3build4 amd64 +libtext-diff-perl 1.45-1 all +sqlite3 3.22.0-1 amd64 --- .etckeeper | 1 + init.d/fhem | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ passwd | 1 + passwd- | 1 + rc0.d/K01fhem | 1 + rc1.d/K01fhem | 1 + rc2.d/S02fhem | 1 + rc3.d/S02fhem | 1 + rc4.d/S02fhem | 1 + rc5.d/S02fhem | 1 + rc6.d/K01fhem | 1 + shadow | 1 + shadow- | 1 + 13 files changed, 80 insertions(+) create mode 100755 init.d/fhem create mode 120000 rc0.d/K01fhem create mode 120000 rc1.d/K01fhem create mode 120000 rc2.d/S02fhem create mode 120000 rc3.d/S02fhem create mode 120000 rc4.d/S02fhem create mode 120000 rc5.d/S02fhem create mode 120000 rc6.d/K01fhem diff --git a/.etckeeper b/.etckeeper index 2d9aec1..995163d 100755 --- a/.etckeeper +++ b/.etckeeper @@ -1619,6 +1619,7 @@ maybe chmod 0755 'init.d/dbus' maybe chmod 0755 'init.d/devolonetsvc' maybe chmod 0755 'init.d/dns-clean' maybe chmod 0755 'init.d/fancontrol' +maybe chmod 0755 'init.d/fhem' maybe chmod 0755 'init.d/gdm3' maybe chmod 0755 'init.d/grub-common' maybe chmod 0755 'init.d/halt' diff --git a/init.d/fhem b/init.d/fhem new file mode 100755 index 0000000..b3fac19 --- /dev/null +++ b/init.d/fhem @@ -0,0 +1,68 @@ +#!/bin/sh +# description: Start or stop the fhem server +# Added by Alex Peuchert + +### BEGIN INIT INFO +# Provides: fhem.pl +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: FHEM server +### END INIT INFO + +set -e +cd /opt/fhem +port=7072 + +if test "$2" != "noaptmark"; then + apt-mark hold fhem > /dev/null +fi + +case "$1" in +'start') + + echo "Starting fhem..." + +# if you need to start hmland for use with +# Homematic, please start the hmland daemon +# like this (please use correct path and port, +# depending on your installation!) +# +# /opt/hmcfgusb/hmland -d -p 1234 -r 0 +# + + perl fhem.pl fhem.cfg + +# if you want to use configDB for configuration, +# use this command to start fhem: +# +# perl fhem.pl configDB +# +# and remove/comment the above line including fhem.cfg + + RETVAL=$? + ;; +'stop') + echo "Stopping fhem..." + +# if you want to stop hmland during fhem stop: +# pkill hmland + + pkill -U fhem perl + RETVAL=$? + ;; +'status') + cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l` + if [ "$cnt" -eq "0" ] ; then + echo "fhem is not running" + else + echo "fhem is running" + fi + ;; +*) + echo "Usage: $0 { start | stop | status }" + RETVAL=1 + ;; +esac +exit $RETVAL diff --git a/passwd b/passwd index 4d48e3b..f241c77 100644 --- a/passwd +++ b/passwd @@ -50,3 +50,4 @@ cups-pk-helper:x:129:113:user for cups-pk-helper service,,,:/home/cups-pk-helper ntp:x:103:105::/nonexistent:/usr/sbin/nologin nvidia-persistenced:x:123:131:NVIDIA Persistence Daemon,,,:/nonexistent:/sbin/nologin alle:x:1013:1014::/home/alle:/bin/false +fhem:x:998:20::/opt/fhem:/bin/false diff --git a/passwd- b/passwd- index 2789531..4d48e3b 100644 --- a/passwd- +++ b/passwd- @@ -49,3 +49,4 @@ bitcoin:x:128:138::/var/lib/bitcoin:/bin/false cups-pk-helper:x:129:113:user for cups-pk-helper service,,,:/home/cups-pk-helper:/usr/sbin/nologin ntp:x:103:105::/nonexistent:/usr/sbin/nologin nvidia-persistenced:x:123:131:NVIDIA Persistence Daemon,,,:/nonexistent:/sbin/nologin +alle:x:1013:1014::/home/alle:/bin/false diff --git a/rc0.d/K01fhem b/rc0.d/K01fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc0.d/K01fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc1.d/K01fhem b/rc1.d/K01fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc1.d/K01fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc2.d/S02fhem b/rc2.d/S02fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc2.d/S02fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc3.d/S02fhem b/rc3.d/S02fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc3.d/S02fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc4.d/S02fhem b/rc4.d/S02fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc4.d/S02fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc5.d/S02fhem b/rc5.d/S02fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc5.d/S02fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/rc6.d/K01fhem b/rc6.d/K01fhem new file mode 120000 index 0000000..6fc2d98 --- /dev/null +++ b/rc6.d/K01fhem @@ -0,0 +1 @@ +../init.d/fhem \ No newline at end of file diff --git a/shadow b/shadow index 3de9b31..51b2e2a 100644 --- a/shadow +++ b/shadow @@ -50,3 +50,4 @@ cups-pk-helper:*:17767:0:99999:7::: ntp:*:17771:0:99999:7::: nvidia-persistenced:*:17774:0:99999:7::: alle:!:17781:0:99999:7::: +fhem:!:17798:::::: diff --git a/shadow- b/shadow- index 28b015f..3de9b31 100644 --- a/shadow- +++ b/shadow- @@ -49,3 +49,4 @@ bitcoin:*:17765:0:99999:7::: cups-pk-helper:*:17767:0:99999:7::: ntp:*:17771:0:99999:7::: nvidia-persistenced:*:17774:0:99999:7::: +alle:!:17781:0:99999:7::: -- 2.43.0