#!/bin/bash # $Id$ #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k #%start: 30 #%stop: 30 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source $rc_functions case "$1" in start) rc_print "Starting DPMMount Daemon ..." start-stop-daemon --start --quiet \ --make-pidfile --pidfile /var/run/DPMMount.pid \ @@SBINDIR@@/DPMMountd -- -m 2 -l @@DPMTEMPDIR@@ evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) rc_print "Stopping DPMMount Daemon ..." start-stop-daemon --stop --quiet --pidfile /var/run/DPMMountd.pid evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; reload) rc_print "Reloading SSH Server ..." reloadproc @@SBINDIR@@/DPMMountd ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc @@SBINDIR@@/DPMMountd ;; *) rc_echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac