added "--scanconfig", nicer
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# /etc/conf.d/ebusd: config file for /etc/init.d/ebusd
|
# /etc/conf.d/ebusd:
|
||||||
|
# config file for /etc/init.d/ebusd.
|
||||||
|
|
||||||
# Options to pass to ebusd
|
# Options to pass to ebusd:
|
||||||
|
EBUSD_ARGS="--scanconfig"
|
||||||
EBUSD_ARGS=""
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Default settings for ebusd. This file is sourced by /bin/sh from
|
# /etc/default/ebusd:
|
||||||
# /etc/init.d/ebusd.
|
# config file for /etc/init.d/ebusd.
|
||||||
|
|
||||||
# Options to pass to ebusd
|
# Options to pass to ebusd:
|
||||||
#EBUSD_OPTS="-d /dev/ttyUSB0"
|
EBUSD_OPTS="--scanconfig"
|
||||||
|
|||||||
@@ -1,26 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: ebusd
|
# Provides: ebusd
|
||||||
# Required-Start: $network $remote_fs $syslog
|
# Required-Start: $network $remote_fs $syslog
|
||||||
# Required-Stop: $network $remote_fs $syslog
|
# Required-Stop: $network $remote_fs $syslog
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: Start ebusd
|
# Short-Description: controls ebusd, the daemon for communication with eBUS heating systems.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
|
||||||
|
|
||||||
if test -f /etc/default/ebusd; then
|
|
||||||
. /etc/default/ebusd
|
|
||||||
fi
|
|
||||||
|
|
||||||
. /lib/lsb/init-functions
|
|
||||||
|
|
||||||
DAEMON=/usr/bin/ebusd
|
DAEMON=/usr/bin/ebusd
|
||||||
PIDFILE=/var/run/ebusd.pid
|
PIDFILE=/var/run/ebusd.pid
|
||||||
|
|
||||||
test -x $DAEMON || exit 5
|
. /lib/lsb/init-functions
|
||||||
|
[ -r /etc/default/ebusd ] && . /etc/default/ebusd
|
||||||
|
|
||||||
|
if [ ! -x $DAEMON ]; then
|
||||||
|
log_failure_msg "$DAEMON is not available or not executable."
|
||||||
|
exit 5
|
||||||
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
|
|||||||
Executable → Regular
+1
-8
@@ -3,19 +3,12 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
#extra_started_commands="reload"
|
|
||||||
command="/usr/bin/ebusd"
|
command="/usr/bin/ebusd"
|
||||||
command_args="${EBUSD_ARGS}"
|
command_args="${EBUSD_ARGS}"
|
||||||
start_stop_daemon_args="--quiet"
|
start_stop_daemon_args="--quiet"
|
||||||
description="Daemon for eBUS"
|
description="ebusd, the daemon for communication with eBUS heating systems."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need localmount
|
need localmount
|
||||||
use logger
|
use logger
|
||||||
}
|
}
|
||||||
|
|
||||||
#reload() {
|
|
||||||
# ebegin "Reloading ebusd configuration"
|
|
||||||
# start-stop-daemon --exec $command --signal HUP
|
|
||||||
# eend $?
|
|
||||||
#}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user