2006-09-03 18:44:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# /etc/rc.d/hald: start/stop HAL daemon
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2008-05-18 02:53:14 -04:00
|
|
|
# Run as haldaemon, not root.
|
|
|
|
su haldaemon -s /bin/sh -c '/usr/sbin/hald --daemon=yes --use-syslog'
|
2006-09-03 18:44:39 +00:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
killall -q /usr/sbin/hald
|
|
|
|
;;
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 2
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 [start|stop|restart]"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|