Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ca05d17306a897e7bdc7ce5b478d8b91 > files > 4

chrony-1.23-8mdv2010.0.i586.rpm

#! /bin/sh
#
# chronyd             Support for NTP . 
#
# chkconfig: 345 60 20
# description: Chrony is a implementation of NTP that support disconnected
#              operation
# 
# processname: chronyd
# config: /etc/chrony.conf
# config: /etc/chrony.keys

# Get config.
. /etc/sysconfig/network

# Get functions
. /etc/rc.d/init.d/functions

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

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

	echo
	touch /var/lock/subsys/chronyd
	;;
  stop)
	gprintf "Stopping chrony services: "
	killproc chronyd

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

exit 0