projects
/
hmcfgusb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: make hmland configurable, update version
[hmcfgusb]
/
debian
/
hmland.init
diff --git
a/debian/hmland.init
b/debian/hmland.init
index 7f8f6d3961d36238fc4affe48e1665236535ff5f..229157bb7cc2bc7e34ca5608f8b4a97bc7ecffbe 100644
(file)
--- a/
debian/hmland.init
+++ b/
debian/hmland.init
@@
-18,16
+18,28
@@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Homematic LAN Adapter service" # Introduce a short description here
NAME=hmland # Introduce the short server's name here
DAEMON=/opt/hm/hmcfgusb/$NAME # Introduce the server's location here
DESC="Homematic LAN Adapter service" # Introduce a short description here
NAME=hmland # Introduce the short server's name here
DAEMON=/opt/hm/hmcfgusb/$NAME # Introduce the server's location here
-DAEMON_ARGS="-
r 03:30 -d -P -p 1000
" # Arguments to run the daemon with
+DAEMON_ARGS="-
d -P
" # Arguments to run the daemon with
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
+HMLAND_LOGGING="no"
+HMLAND_PORT="1000"
+HMLAND_ENABLED="0"
+
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+test "$HMLAND_ENABLED" != "0" || exit 0
+
+DAEMON_ARGS="$DAEMON_ARGS -p $HMLAND_PORT $HMLAND_OPTS"
+
+if [ "$HMLAND_LOGGING" = "yes" ]; then
+ DAEMON_ARGS="$DAEMON_ARGS -L /var/log/hmland.log"
+fi
+
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
Impressum
,
Datenschutz