3 # hal Start the Daemon that stores device informations
4 # for the Hardware abstraction layer
6 # Written by Martin Waitz based on skeleton code
7 # written by Miquel van Smoorenburg <miquels@cistron.nl>.
9 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
12 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
15 PIDFILE=$PIDDIR/hald.pid
18 DESC="Hardware abstraction layer"
20 test -x $DAEMON || exit 0
25 if [ ! -d $PIDDIR ]; then
27 chown $DAEMONUSER:$DAEMONUSER $PIDDIR
29 echo "Starting $DESC" "$NAME"
30 start-stop-daemon --start --pidfile $PIDFILE \
31 --exec $DAEMON -- $DAEMON_OPTS
35 echo "Stopping $DESC" "$NAME"
36 start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE \
53 echo "Usage: $0 {start|stop|restart|force-reload}" >&2