NEW: ebus-daemon merged into ebusd.

This commit is contained in:
Roland Jax
2014-05-20 22:12:02 +02:00
84 changed files with 2922 additions and 6226 deletions
+44
View File
@@ -0,0 +1,44 @@
#!/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:
# Short-Description: Start ebusd
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
. /lib/lsb/init-functions
DAEMON=/usr/bin/ebusd
PIDFILE=/var/run/ebusd.pid
test -x $DAEMON || exit 5
case $1 in
start)
log_daemon_msg "Starting ebusd" "ebusd"
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON
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
+21
View File
@@ -0,0 +1,21 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#extra_started_commands="reload"
command="/usr/bin/ebusd"
command_args="${EBUSD_ARGS}"
start_stop_daemon_args="--quiet"
description="Daemon for ebus Communication"
depend() {
need localmount
use logger
}
#reload() {
# ebegin "Reloading ebusd configuration"
# start-stop-daemon --exec $command --signal HUP
# eend $?
#}