Error trying to stop the actual packet-forwarder using the clouds-manager script
When trying the stop a running packet-forwarder (no matter which one), an error saying that no process has been killed and the packet-forwarder is sill running.
Symptoms
The clouds-manager status display a running packet-forwarder:
$ /etc/init.d/clouds-manager.sh status
Cloud ttn status:
/opt/lorix/clouds/ttn/poly_pkt_fwd (pid 1008) is running...
CODE
But when trying to stop this running process using the clouds-manager:
$ /etc/init.d/clouds-manager.sh stop
Stopping cloud ttn... no /opt/lorix/clouds/ttn/poly_pkt_fwd found; none killed
timeout during wait for stop
no /opt/lorix/clouds/ttn/poly_pkt_fwd found; none killed
/opt/lorix/clouds/ttn/poly_pkt_fwd was not running
done.
CODE
This error appears because a process is currently running but the pid file containing the process pid is missing under the /var/run directory and normally when the clouds-manager is configured for autoboot.
Fix
A short term option can be to manually stop the process using its pid as given by the clouds-manager.sh status command:
However, this will most likely appears again on the next reboot.
The release 22 February 2018 fix this issue.