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
if [ -f /etc/SuSE-release ]; then
18
   SUSE=1
19
   START=startproc
20
   STATUS="rc_status -v"
21
   . /etc/rc.status
22
   rc_reset
23
else
24
   SUSE=0
25
   START=daemon
26
   STATUS=echo
27
   . /etc/rc.d/init.d/functions
28
 
29
fi
30
 
31
start() {
32
	echo -n $"Starting ipUpdate: "
33
	$START /usr/sbin/ipUpdate.pl
34
	touch /var/lock/subsys/ipUpdate
35
	$STATUS
36
}
37
 
38
stop() {
39
	echo -n $"Shutting down ipUpdate: "
40
	killproc ipUpdate.pl
41
	rm -f  /var/lock/subsys/ipUpdate
42
        $STATUS
43
}
44
 
45
[ -f /usr/sbin/ipUpdate.pl ] || exit 0
46
grep "daemon[:space:]*=[:space:]*no" /etc/dnsexit.conf >/dev/null 2>&1 && exit 0
47
case "$1" in
48
    start)
49
        start
50
        ;;
51
    stop)
52
        stop
53
        ;;
54
    status)
55
        ;;
56
    restart)
57
        stop
58
        start
59
        ;;
60
    condrestart)
61
        ;;
62
    reload)
63
        ;;
64
    *)
65
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
66
        ;;
67
esac
68
[ $SUSE -eq "1" ] && rc_exit
69
exit 0