[Lunar-commits] r20725 - lunar/trunk/var/lib/lunar/plugins
Auke Kok
sofar at lunar-linux.org
Sat Jul 15 20:51:19 UTC 2006
Author: sofar
Date: 2006-07-15 20:51:19 +0000 (Sat, 15 Jul 2006)
New Revision: 20725
Modified:
lunar/trunk/var/lib/lunar/plugins/initd.plugin
Log:
Allow SA to skip restarting of services with `lunar set LUNAR_RESTART_SERVICES off`
Modified: lunar/trunk/var/lib/lunar/plugins/initd.plugin
===================================================================
--- lunar/trunk/var/lib/lunar/plugins/initd.plugin 2006-07-15 19:24:17 UTC (rev 20724)
+++ lunar/trunk/var/lib/lunar/plugins/initd.plugin 2006-07-15 20:51:19 UTC (rev 20725)
@@ -73,8 +73,10 @@
CHKCONFIG=`grep '^# chkconfig:' /etc/init.d/$INITDSCRIPT | cut -d : -f 2-2`
if `echo $CHKCONFIG | grep -q $(/sbin/runlevel | cut -d ' ' -f 2-2) -`
then
- ( cd / && /etc/init.d/$INITDSCRIPT stop )
- ( cd / && /etc/init.d/$INITDSCRIPT start )
+ if [ "${LUNAR_RESTART_SERVICES:=on}" == "on" ]; then
+ ( cd / && /etc/init.d/$INITDSCRIPT stop )
+ ( cd / && /etc/init.d/$INITDSCRIPT start )
+ fi
fi
done
More information about the Lunar-commits
mailing list