X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fbootscripts%2Fhald;h=5249d8c89427829a16cc12b7e958c8d529144638;hb=8e53f0b487073f1ccfa7e59484e9b926881bad2d;hp=623f5fb2cf1d293bea83127c32162b000ff6f1ff;hpb=afdcc2624aec2f5aaaf00aa211455ba54eaf0703;p=hvlinux.git diff --git a/stage4/bootscripts/hald b/stage4/bootscripts/hald index 623f5fb..5249d8c 100755 --- a/stage4/bootscripts/hald +++ b/stage4/bootscripts/hald @@ -7,25 +7,29 @@ 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 "HAL Daemon start" loadproc /usr/sbin/hald --use-syslog + cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_DESC} ;; - + stop) - cmd_run_log_box_warn "HAL Daemon stop" killproc /usr/sbin/hald + cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON} ;; - + status) - statusproc hald + statusproc ${DAEMON} ;; - + restart) $0 stop sleep 1 $0 start ;; - + *) echo "Usage: $0 {restart|start|status|stop}" exit ${EXIT_CODE_FAILURE}