opt/hal/rc.hald
2008-05-18 02:53:14 -04:00

25 lines
338 B
Bash

#!/bin/sh
#
# /etc/rc.d/hald: start/stop HAL daemon
#
case $1 in
start)
# Run as haldaemon, not root.
su haldaemon -s /bin/sh -c '/usr/sbin/hald --daemon=yes --use-syslog'
;;
stop)
killall -q /usr/sbin/hald
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $0 [start|stop|restart]"
;;
esac
# End of file