Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
121 - 1
# chkconfig: 345 85 60
2
# description: DnsExit.Com dynamic dns client.
3
# processname: ipUpdate.pl
4
 
5
### BEGIN INIT INFO
6
# Provides: ipUpdate
7
# Required-Start: $local_fs $network
8
# Should-Start:
9
# Required-Stop:
10
# Default-Start: 3 4 5
11
# Default-Stop: 0 1 2 6
12
# Short-Description: DnsExit.Com dynamic dns client.
13
# Description: DnsExit.Com dynamic dns client.
14
### END INIT INFO
15
 
16
# Source function library.
17
START=daemon
18
STATUS=echo
19
. /etc/rc.d/init.d/functions
20
 
21
start() {
22
	echo -n $"Starting ipUpdate: "
23
	$START /etc/dnsexit/ipUpdate.pl
24
	touch /var/lock/subsys/ipUpdate
25
	$STATUS
26
}
27
 
28
stop() {
29
	echo -n $"Shutting down ipUpdate: "
30
	killproc ipUpdate.pl
31
	rm -f  /var/lock/subsys/ipUpdate
32
        $STATUS
33
}
34
 
35
[ -f /etc/dnsexit/ipUpdate.pl ] || exit 0
36
grep "daemon[:space:]*=[:space:]*no" /etc/dnsexit.conf >/dev/null 2>&1 && exit 0
37
case "$1" in
38
    start)
39
        start
40
        ;;
41
    stop)
42
        stop
43
        ;;
44
    status)
45
        ;;
46
    restart)
47
        stop
48
        start
49
        ;;
50
    condrestart)
51
        ;;
52
    reload)
53
        ;;
54
    *)
55
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
56
        ;;
57
esac
58
exit 0