X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.init;h=999a1ec5529f67895bfaf28d8d8af2bf3642779a;hb=77ef1d9fe94f38d2b99fc2cee5eb6ec2c167652d;hp=309523e3371c23b7fa07cb6a5a0061330faccc71;hpb=b42be39ff01f53ace4b72726c27842a22739f6a3;p=myplc.git diff --git a/plc.init b/plc.init index 309523e..999a1ec 100755 --- a/plc.init +++ b/plc.init @@ -2,12 +2,10 @@ # # plc Manages all PLC services on this machine # -# chkconfig: 2345 5 99 +# chkconfig: 2345 60 40 # # description: Manages all PLC services on this machine # -# $Id$ -# # Source function library and configuration . /etc/plc.d/functions @@ -34,10 +32,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 @@ -133,7 +132,7 @@ fi # Get command shift $(($OPTIND - 1)) if [ -z "$1" ] ; then - usage + usage >&3 fi command=$1