Blame | Last modification | View Log | RSS feed
# chkconfig: 345 85 60
# description: DnsExit.Com dynamic dns client.
# processname: ipUpdate.pl
### BEGIN INIT INFO
# Provides: ipUpdate
# Required-Start: $local_fs $network
# Should-Start:
# Required-Stop:
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: DnsExit.Com dynamic dns client.
# Description: DnsExit.Com dynamic dns client.
### END INIT INFO
# Source function library.
START=daemon
STATUS=echo
. /etc/rc.d/init.d/functions
start() {
echo -n $"Starting ipUpdate: "
$START /etc/dnsexit/ipUpdate.pl
touch /var/lock/subsys/ipUpdate
$STATUS
}
stop() {
echo -n $"Shutting down ipUpdate: "
killproc ipUpdate.pl
rm -f /var/lock/subsys/ipUpdate
$STATUS
}
[ -f /etc/dnsexit/ipUpdate.pl ] || exit 0
grep "daemon[:space:]*=[:space:]*no" /etc/dnsexit.conf >/dev/null 2>&1 && exit 0
case "$1" in
start)
start
;;
stop)
stop
;;
status)
;;
restart)
stop
start
;;
condrestart)
;;
reload)
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
;;
esac
exit 0