Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37823155
en ru br
ALT Linux repositórios
S:1.2-alt2.qa1
5.0: 1.2-alt2
4.1: 1.2-alt2

Group :: Rede/Outros
RPM: netdate

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#! /bin/bash
#
# netdate set date and time by ARPA Internet RFC 868
#
# chkconfig: 345 90 60
# description: netdate - set date and time by ARPA Internet RFC 868
# processname: netdate
# config: /etc/sysconfig/netdate
# pidfile: /var/run/netdate.pid

# Source function library.
WITHOUT_RC_COMPAT=1
. /etc/init.d/functions

# Source networking configuration.
SourceIfNotEmpty /etc/sysconfig/netdate

LOCKFILE=/var/lock/subsys/netdate
RETVAL=0

start()
{
#test -z "$NETDATE_HOSTS" || { echo_passed; exit 0; }
action "Synchronizing network time" "/usr/sbin/netdate ${NETDATE_LIMIT:+-l $NETDATE_LIMIT} ${NETDATE_PROTO} ${NETDATE_HOSTS}"
RETVAL=$?
return $RETVAL
}

stop()
{
true
}

restart()
{
stop
start
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload|restart)
restart
;;
*)
msg_usage "${0##*/} {start|stop|restart}"
RETVAL=1
esac

exit $RETVAL
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009