projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-Chaque paquet installé avec succès a maintenant un fichier paquet.done
[hvlinux.git]
/
stage4
/
bootscripts
/
hald
diff --git
a/stage4/bootscripts/hald
b/stage4/bootscripts/hald
index
623f5fb
..
5249d8c
100755
(executable)
--- a/
stage4/bootscripts/hald
+++ b/
stage4/bootscripts/hald
@@
-7,25
+7,29
@@
source /etc/rc.d/init.d/functions
log_script_name "$0 $*"
log_script_name "$0 $*"
+DAEMON=/usr/sbin/hald
+DAEMON_DESC="HAL daemon"
+DAEMON_OPTS="--use-syslog"
+
case "$1" in
start)
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)
stop)
- cmd_run_log_box_warn "
HAL Daemon stop" killproc /usr/sbin/hald
+ cmd_run_log_box_warn "
${DAEMON_DESC} stop" killproc ${DAEMON}
;;
;;
-
+
status)
status)
- statusproc
hald
+ statusproc
${DAEMON}
;;
;;
-
+
restart)
$0 stop
sleep 1
$0 start
;;
restart)
$0 stop
sleep 1
$0 start
;;
-
+
*)
echo "Usage: $0 {restart|start|status|stop}"
exit ${EXIT_CODE_FAILURE}
*)
echo "Usage: $0 {restart|start|status|stop}"
exit ${EXIT_CODE_FAILURE}