]> git.pld-linux.org Git - packages/rdate.git/commitdiff
- standarize including /etc/sysconfig/rdate,
authorkloczek <kloczek@pld-linux.org>
Wed, 5 Feb 2003 19:38:09 +0000 (19:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- if /etc/sysconfig/rdate isn't avalaible SET_TIME=no.

Changed files:
    rdate.init -> 1.3

rdate.init

index 4f32089dd5fbe838962ec578f3036b3ef9b41816..f9be2e5e7658e3b367a701161377ff4ffcd9d364 100644 (file)
@@ -18,11 +18,16 @@ if is_no "${NETWORKING}"; then
        exit 1
 fi
 
+SET_TIME=no
+
+# Get service config
+if [ -f /etc/sysconfig/rdate ] ; then
+       . /etc/sysconfig/rdate
+fi
+
 # See how we were called.
 case "$1" in
   start|restart)
-       . /etc/sysconfig/rdate
-
        # Check if we have to do anything:
        if [ "$SET_TIME" = "yes" ]; then
                if [ -n "$RDATE_SERVER" ]; then
This page took 0.074487 seconds and 4 git commands to generate.