nicer directory structure

This commit is contained in:
john30
2016-01-06 15:17:57 +01:00
parent ec55636148
commit 5d8b351941
5 changed files with 2 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
# /etc/default/ebusd:
# config file for /etc/init.d/ebusd.
# Options to pass to ebusd:
EBUSD_OPTS="--scanconfig"
+46
View File
@@ -0,0 +1,46 @@
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: ebusd
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: controls ebusd, the daemon for communication with eBUS heating systems.
### END INIT INFO
DAEMON=/usr/bin/ebusd
PIDFILE=/var/run/ebusd.pid
. /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
start)
log_daemon_msg "Starting ebusd" "ebusd"
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON -- $EBUSD_OPTS
status=$?
log_end_msg $status
;;
stop)
log_daemon_msg "Stopping ebusd" "ebusd"
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
log_end_msg $?
rm -f $PIDFILE
;;
restart|force-reload)
$0 stop && sleep 2 && $0 start
;;
status)
status_of_proc $DAEMON "ebusd"
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}"
exit 2
;;
esac