#!/bin/bash # $Header: /root/magellan-cvs/src/hal/hald.rc,v 1.1 2005-05-03 15:32:40 niro Exp $ #%rlevels: 0:k 1:k 6:k 7:s #%start: 58 #%stop: 45 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting Hardware Abstraction Layer daemon ..." start-stop-daemon --start -q --exec /usr/sbin/hald evaluate_retval splash svc_started splash 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping Hardware Abstraction Layer daemon ..." start-stop-daemon --stop -q --pidfile /var/run/hald/hald.pid evaluate_retval splash svc_stopped splash 0 ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac