]> git.pld-linux.org Git - packages/rdate.git/commitdiff
- sync time daily
authorTomek Orzechowski <orzech@pld-linux.org>
Wed, 26 Mar 2003 09:05:15 +0000 (09:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rdate.cron -> 1.1

rdate.cron [new file with mode: 0644]

diff --git a/rdate.cron b/rdate.cron
new file mode 100644 (file)
index 0000000..e644855
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Get service config
+if [ -f /etc/sysconfig/rdate ] ; then
+       . /etc/sysconfig/rdate
+fi
+
+# Check that networking is up.
+if [ is_yes "${NETWORKING}" -a is _yes "${SET_TIME}" -a -n "${RDATE_SERVER}" ]; then
+       /usr/bin/rdate -s $RDATE_SERVER
+fi
This page took 0.065522 seconds and 4 git commands to generate.