File inadyn.initrd of Package inadyn

#!/bin/sh
#
# ddclient      This shell script takes care of starting and stopping
#               inadyn.
#
# chkconfig: 2345 65 35
# description: inadyn provides support for updating dynamic DNS services.
#
# Above is for RedHat and now the LSB part
### BEGIN INIT INFO
# Provides:          ddclient
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: inadyn provides support for updating dynamic DNS services
# Description:       inadyn is a C++ client used to update dynamic DNS
#                    entries for accounts on many dynamic DNS services and
#                    can be used on many types of firewalls
### END INIT INFO
# 
###

[ -f /etc/inadyn.conf ] || exit 0

#
# LSB Standard (SuSE,RedHat,...)
#
if [ -f /lib/lsb/init-functions ] ; then
   . /lib/lsb/init-functions
fi

# See how we were called.
case "$1" in
  start)
        echo -n "Starting inadyn "
        start_daemon /usr/bin/inadyn
        rc_status -v
        ;;
  stop)
        echo -n "Shutting down inadyn "
        killproc -TERM inadyn
        rc_status -v
        ;;
  restart|reload)
        $0 stop
        $0 start
        rc_status
        ;;
  status)
        echo -n "Checking for service inadyn "
        checkproc inadyn
        rc_status -v
        ;;
  *)
        echo "Usage: inadyn {start|stop|restart|status}"
        exit 1
esac

exit 0
openSUSE Build Service is sponsored by