Magellan Linux

Annotation of /trunk/nsm-client/nsmclient.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (hide annotations) (download)
Wed Aug 30 13:56:04 2006 UTC (17 years, 8 months ago) by niro
File size: 941 byte(s)
new file

1 niro 77 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/nsm-client/nsmclient.rc,v 1.1 2006-08-30 13:56:04 niro Exp $
3    
4     #%rlevels: 5:s 0:k 1:k 2:k 3:k 6:k
5     #%start: 80
6     #%stop: 20
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     case "$1" in
17     start)
18     echo -e ${COLOREDSTAR}"Starting Netsupport Client ..."
19     start-stop-daemon --start --quiet --pidfile /var/run/nsmclient.pid \
20     --exec /opt/nsm-client/daemon/nsmclient
21     evaluate_retval
22    
23     update_svcstatus $1
24     splash svc_started "$(basename $0)" 0
25     ;;
26    
27     stop)
28     echo -e ${COLOREDSTAR}"Stopping Netsupport Client ..."
29     start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/nsmclient.pid
30     evaluate_retval
31    
32     update_svcstatus $1
33     splash svc_stopped "$(basename $0)" 0
34     ;;
35    
36     restart)
37     $0 stop
38     sleep 1
39     $0 start
40     ;;
41    
42     status)
43     statusproc /opt/nsm-client/daemon/nsmclient
44     ;;
45    
46     *)
47     echo "Usage: $0 {start|stop|reload|restart|status}"
48     exit 1
49     ;;
50     esac

Properties

Name Value
svn:executable *