git://git.onelab.eu
/
myplc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.onelab.eu/git/myplc
[myplc.git]
/
plc.init
diff --git
a/plc.init
b/plc.init
index
0617516
..
999a1ec
100755
(executable)
--- a/
plc.init
+++ b/
plc.init
@@
-2,13
+2,10
@@
#
# plc Manages all PLC services on this machine
#
#
# plc Manages all PLC services on this machine
#
-# chkconfig: 2345
5 99
+# chkconfig: 2345
60 40
#
# description: Manages all PLC services on this machine
#
#
# description: Manages all PLC services on this machine
#
-# $Id$
-# $URL$
-#
# Source function library and configuration
. /etc/plc.d/functions
# Source function library and configuration
. /etc/plc.d/functions
@@
-35,10
+32,11
@@
verbose=0
# but that's maybe a good thing, that all is done at first start
###
# 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)
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
if [ -f $step -a -x $step -a "$stepname" = "$plainstepname" ] ; then
priority=$(sed -ne 's/# priority: \(.*\)/\1/p' $step)
echo $priority $stepname