#!/bin/sh # saslauthd # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" case "$1" in start) cmd_run_log_box_warn "SASL daemon start" loadproc /usr/sbin/saslauthd -a shadow ;; stop) cmd_run_log_box_warn "SASL daemon stop" killproc saslauthd ;; status) statusproc saslauthd ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {restart|start|status|stop}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?