X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.init;h=c3ae8f45f329fc7c88e3d78aeb65f53020460dc2;hb=1e0e4007e306ca111f0d538c073fd51380abcd99;hp=c98b0c1cb943d9ff8a173e87ae9134ba6a7526bc;hpb=0c52bbbae08d0d04b99fb060dc4a493c9280e713;p=myplc.git diff --git a/plc.init b/plc.init index c98b0c1..c3ae8f4 100755 --- a/plc.init +++ b/plc.init @@ -8,6 +8,7 @@ # # Source function library and configuration +# plc_reload is defined here . /etc/plc.d/functions # Verbosity @@ -100,7 +101,7 @@ command=$1 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=("$@") @@ -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 - reload + plc_reload 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 - reload + plc_reload else echo "PLC: $step: unrecognized step" >&4 exit 1 @@ -149,7 +150,7 @@ case "$command" in ;; reload) - reload force + plc_reload force ;; checkpoint)