Magellan Linux

Annotation of /trunk/citrix-plugin-speechmike/dpmmountd.rc.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2128 - (hide annotations) (download)
Wed May 29 07:21:23 2013 UTC (10 years, 11 months ago) by niro
File size: 940 byte(s)
-fixed broken sysvinit script
1 niro 2124 #!/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 niro 2128
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 niro 2124 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 niro 2128 start-stop-daemon --stop --quiet --pidfile /var/run/dpmmountd.pid
35 niro 2124 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 niro 2128 rc_echo "Usage: $0 {start|stop|restart|status}"
53 niro 2124 exit 1
54     ;;
55     esac

Properties

Name Value
svn:executable *