16 |
case "$1" in |
case "$1" in |
17 |
start) |
start) |
18 |
rc_print "Starting DPMMount Daemon ..." |
rc_print "Starting DPMMount Daemon ..." |
19 |
start-stop-daemon --start --quiet \ |
|
20 |
--make-pidfile --pidfile /var/run/DPMMount.pid \ |
# ensure that the link dir exist |
21 |
@@SBINDIR@@/DPMMountd -- -m 2 -l @@DPMTEMPDIR@@ |
[[ ! -e @@DPMTEMPDIR@@ ]] && mkdir -p @@DPMTEMPDIR@@ |
22 |
|
|
23 |
|
start-stop-daemon --start --quiet --background \ |
24 |
|
--make-pidfile --pidfile /var/run/dpmmountd.pid \ |
25 |
|
--exec @@SBINDIR@@/DPMMountd -- -m 2 -l @@DPMTEMPDIR@@ |
26 |
evaluate_retval |
evaluate_retval |
27 |
|
|
28 |
update_svcstatus $1 |
update_svcstatus $1 |
31 |
|
|
32 |
stop) |
stop) |
33 |
rc_print "Stopping DPMMount Daemon ..." |
rc_print "Stopping DPMMount Daemon ..." |
34 |
start-stop-daemon --stop --quiet --pidfile /var/run/DPMMountd.pid |
start-stop-daemon --stop --quiet --pidfile /var/run/dpmmountd.pid |
35 |
evaluate_retval |
evaluate_retval |
36 |
|
|
37 |
update_svcstatus $1 |
update_svcstatus $1 |
38 |
splash svc_stopped "$(basename $0)" 0 |
splash svc_stopped "$(basename $0)" 0 |
39 |
;; |
;; |
40 |
|
|
|
reload) |
|
|
rc_print "Reloading SSH Server ..." |
|
|
reloadproc @@SBINDIR@@/DPMMountd |
|
|
;; |
|
|
|
|
41 |
restart) |
restart) |
42 |
$0 stop |
$0 stop |
43 |
sleep 1 |
sleep 1 |
49 |
;; |
;; |
50 |
|
|
51 |
*) |
*) |
52 |
rc_echo "Usage: $0 {start|stop|reload|restart|status}" |
rc_echo "Usage: $0 {start|stop|restart|status}" |
53 |
exit 1 |
exit 1 |
54 |
;; |
;; |
55 |
esac |
esac |