Magellan Linux

Annotation of /trunk/ddclient/ddclient.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (hide annotations) (download)
Tue Dec 12 00:30:14 2006 UTC (17 years, 5 months ago) by niro
File size: 906 byte(s)
ver bump to 3.7.0-r1; new package

1 niro 86 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/ddclient/ddclient.rc,v 1.1 2006-12-12 00:30:14 niro Exp $
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/sysconfig/rc
14     source $rc_functions
15    
16     case "$1" in
17     start)
18     echo -e ${COLOREDSTAR}"Starting ddclient ..."
19     start-stop-daemon --start --chuid ddclient \
20     --exec /usr/sbin/ddclient -- --pid /var/run/ddclient/ddclient.pid
21     evaluate_retval
22    
23     update_svcstatus $1
24     splash svc_started "$(basename $0)" 0
25     ;;
26    
27     stop)
28     echo -e ${COLOREDSTAR}"Stopping ddclient ..."
29     start-stop-daemon --stop --signal USR1 --pid /var/run/ddclient/ddclient.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 /usr/sbin/ddclient
44     ;;
45    
46     *)
47     echo "Usage: $0 {start|stop|restart|status}"
48     exit 1
49     ;;
50     esac

Properties

Name Value
svn:executable *