[Lunar-commits] r19949 - moonbase/trunk/web/squid/init.d
Moritz Heiber
moe at lunar-linux.org
Fri May 5 12:08:48 UTC 2006
Author: moe
Date: 2006-05-05 12:08:48 +0000 (Fri, 05 May 2006)
New Revision: 19949
Modified:
moonbase/trunk/web/squid/init.d/squid
Log:
Fixing the squid init script. Squids takes about 1 - 2 seconds to shutdown properly.
Modified: moonbase/trunk/web/squid/init.d/squid
===================================================================
--- moonbase/trunk/web/squid/init.d/squid 2006-05-05 08:21:24 UTC (rev 19948)
+++ moonbase/trunk/web/squid/init.d/squid 2006-05-05 12:08:48 UTC (rev 19949)
@@ -29,6 +29,13 @@
echo -e "$RESULT_FAIL"
}
+restart () {
+ # Apparently we have to cut squid some slack
+ stop;
+ sleep 3;
+ start;
+}
+
usage () {
echo "Usage: $0 {start|stop|restart}"
}
More information about the Lunar-commits
mailing list