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
Setting tag myplc-5.1-5
[myplc.git]
/
plc.init
diff --git
a/plc.init
b/plc.init
index
c98b0c1
..
c3ae8f4
100755
(executable)
--- a/
plc.init
+++ b/
plc.init
@@
-8,6
+8,7
@@
#
# Source function library and configuration
#
# Source function library and configuration
+# plc_reload is defined here
. /etc/plc.d/functions
# Verbosity
. /etc/plc.d/functions
# Verbosity
@@
-100,7
+101,7
@@
command=$1
shift 1
if [ -z "$1" ] ; then
# Start or stop everything. Regenerate configuration first.
shift 1
if [ -z "$1" ] ; then
# Start or stop everything. Regenerate configuration first.
- reload force
+
plc_
reload force
else
# Start or stop a particular step
steps=("$@")
else
# Start or stop a particular step
steps=("$@")
@@
-115,7
+116,7
@@
start ()
if [ -x /etc/plc.d/$step ] ; then
/etc/plc.d/$step start
# Steps may alter the configuration, may need to regenerate
if [ -x /etc/plc.d/$step ] ; then
/etc/plc.d/$step start
# Steps may alter the configuration, may need to regenerate
- reload
+
plc_
reload
else
echo "PLC: $step: unrecognized step" >&4
exit 1
else
echo "PLC: $step: unrecognized step" >&4
exit 1
@@
-130,7
+131,7
@@
stop ()
if [ -x /etc/plc.d/$step ] ; then
/etc/plc.d/$step stop
# Steps may alter the configuration, may need to regenerate
if [ -x /etc/plc.d/$step ] ; then
/etc/plc.d/$step stop
# Steps may alter the configuration, may need to regenerate
- reload
+
plc_
reload
else
echo "PLC: $step: unrecognized step" >&4
exit 1
else
echo "PLC: $step: unrecognized step" >&4
exit 1
@@
-149,7
+150,7
@@
case "$command" in
;;
reload)
;;
reload)
- reload force
+
plc_
reload force
;;
checkpoint)
;;
checkpoint)