X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.init;h=5abb16914f661220eb23bf155df84b39afe7629e;hb=684b8a1afda2cf5137526398ec78728105308093;hp=20755d5feb86b81be3dc051cc8590236ad7fbc94;hpb=8cf3a0a74146c0ab1ceb70e2ecf5f774c5878e30;p=myplc.git diff --git a/plc.init b/plc.init index 20755d5..5abb169 100755 --- a/plc.init +++ b/plc.init @@ -2,12 +2,11 @@ # # plc Manages all PLC services on this machine # -# chkconfig: 2345 5 99 +# needs to be tested +# chkconfig: 2345 60 40 # # description: Manages all PLC services on this machine # -# $Id$ -# # Source function library and configuration . /etc/plc.d/functions @@ -34,10 +33,11 @@ verbose=0 # but that's maybe a good thing, that all is done at first start ### +# do not consider files that contain '.', '~' or 'functions' in the name steps=($( for step in /etc/plc.d/* ; do stepname=$(basename $step) - plainstepname=$(echo $stepname | sed -e 's,\.,,' -e 's,~,,') + plainstepname=$(echo $stepname | sed -e 's,\.,,' -e 's,~,,' -e 's,functions,,' ) if [ -f $step -a -x $step -a "$stepname" = "$plainstepname" ] ; then priority=$(sed -ne 's/# priority: \(.*\)/\1/p' $step) echo $priority $stepname