#!/bin/sh # hald # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" DAEMON=/usr/sbin/hald DAEMON_DESC="HAL daemon" DAEMON_OPTS="--use-syslog" case "$1" in start) cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_DESC} ;; stop) cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON} ;; status) statusproc ${DAEMON} ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {restart|start|status|stop}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?