Harmonise les bootscripts (daemon)
[hvlinux.git] / stage3 / bootscripts / saslauthd
index 6d271a5..3fdba43 100755 (executable)
@@ -7,19 +7,23 @@ source /etc/rc.d/init.d/functions
 
 log_script_name "$0 $*"
 
+DAEMON=/usr/sbin/saslauthd
+DAEMON_DESC="SASL authentication daemon"
+DAEMON_OPTS="-a shadow"
+
 case "$1" in
     start)
-       cmd_run_log_box_warn "SASL daemon start" loadproc /usr/sbin/saslauthd -a shadow
+       cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_OPTS}
         ;;
 
     stop)
-       cmd_run_log_box_warn "SASL daemon stop" killproc saslauthd
+       cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON}
         ;;
-                
+
     status)
-        statusproc saslauthd
+        statusproc ${DAEMON}
         ;;
-        
+
     restart)
         $0 stop
         sleep 1