#!/bin/bash # Begin $rc_base/init.d/haldaemon # Based on sysklogd script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org #$LastChangedBy: randy $ #$Date: 2006-06-24 17:00:20 -0500 (Sat, 24 Jun 2006) $ . /etc/sysconfig/rc . $rc_functions pidfile=/run/hald/pid case "$1" in start) boot_mesg "Starting the HAL Daemon..." loadproc -p $pidfile /usr/sbin/hald --use-syslog ;; stop) boot_mesg "Stopping the HAL Daemon..." killproc -p $pidfile /usr/sbin/hald ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc -p $pidfile /usr/sbin/hald ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac # End $rc_base/init.d/haldaemon