Contents of /tags/citrix-plugin-speechmike-0_4_2/dpmmountd.rc.in
Parent Directory | Revision Log
Revision 2134 -
(show annotations)
(download)
Wed May 29 09:26:31 2013 UTC (11 years, 4 months ago) by niro
File size: 940 byte(s)
Wed May 29 09:26:31 2013 UTC (11 years, 4 months ago) by niro
File size: 940 byte(s)
tagged 'citrix-plugin-speechmike-0_4_2'
1 | #!/bin/bash |
2 | # $Id$ |
3 | |
4 | #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k |
5 | #%start: 30 |
6 | #%stop: 30 |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/conf.d/rc |
14 | source $rc_functions |
15 | |
16 | case "$1" in |
17 | start) |
18 | rc_print "Starting DPMMount Daemon ..." |
19 | |
20 | # ensure that the link dir exist |
21 | [[ ! -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 |
27 | |
28 | update_svcstatus $1 |
29 | splash svc_started "$(basename $0)" 0 |
30 | ;; |
31 | |
32 | stop) |
33 | rc_print "Stopping DPMMount Daemon ..." |
34 | start-stop-daemon --stop --quiet --pidfile /var/run/dpmmountd.pid |
35 | evaluate_retval |
36 | |
37 | update_svcstatus $1 |
38 | splash svc_stopped "$(basename $0)" 0 |
39 | ;; |
40 | |
41 | restart) |
42 | $0 stop |
43 | sleep 1 |
44 | $0 start |
45 | ;; |
46 | |
47 | status) |
48 | statusproc @@SBINDIR@@/DPMMountd |
49 | ;; |
50 | |
51 | *) |
52 | rc_echo "Usage: $0 {start|stop|restart|status}" |
53 | exit 1 |
54 | ;; |
55 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |