#
# Source function library and configuration
+# plc_reload is defined here
. /etc/plc.d/functions
# Verbosity
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=("$@")
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
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
;;
reload)
- reload force
+ plc_reload force
;;
checkpoint)