]> git.pld-linux.org Git - packages/Regina.git/commitdiff
- added check that network is up
authorshadzik <shadzik@pld-linux.org>
Thu, 11 May 2006 00:28:31 +0000 (00:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Regina.init -> 1.2

Regina.init

index 686f2040ba5ee34ac84ee69ee1d41bc294498151..92bb6c76e0b7a46b7d4f8535437f766d3ffcb4f8 100644 (file)
@@ -9,6 +9,16 @@
 # source function library
 . /etc/rc.d/init.d/functions
 
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+        if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+                msg_network_down pure-ftpd
+                exit 1
+        fi
+else
+        exit 0
+fi
+
 RETVAL=0
 
 case "$1" in
This page took 0.114504 seconds and 4 git commands to generate.