Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > f13aed6a53eb586fe4757a96322c306c > files > 2

dhsd-1.0-4mdk.i586.rpm

#! /bin/sh
#
# chkconfig: 345 50 50
# description: dhsd dynamic dns record updater.
# processname: dhsd


# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

[ -f /usr/sbin/dhsd ] || exit 0

# See how we were called.
case "$1" in
  start)
	gprintf "Starting dhsd: "
	daemon dhsd 

	echo
	touch /var/lock/subsys/dhsd
	;;
  stop)
	gprintf "Stopping dhsd: "
	killproc dhsd

	echo
	rm -f /var/lock/subsys/dhsd
	;;
  status)
	status dhsd
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	gprintf "Usage: dhsd  {start|stop|status|restart}\n"
	exit 1
esac

exit 0