This HowTo describes how to add the monitor stack to your software release in the context of html5as-base software release.
Here is the commit introducing this functionality to html5as software release: commit diff.
Services that are not running will be started automatically at the end of an instanciation.
If a monitored Service exit, the signal will trigger an alert to the local SlapOS master forcing the reprocessing of the instance and all its dependecies in order to get back to an expected state. The -on-watch
postfix is added to the service name in supervisord in order to mark this service as monitored.
Change the executable launcher
from ${basedirectory:script}
to ${basedirectory:service}
[html5as]
...
# Executables
bin_launcher = ${basedirectory:service}/launcher
Refer How To Move to md5sum automatic update to update md5sum
:
$ cd ~/srv/project/slapos/software/html5as-base $ ../../update-hash
The instance should be re-instantiated:
$ slapos node instance --all
You can get the status of services run by supervisord via
& slapos node status
Launcher is now named to launcher-on-watch.
For more information, please contact Jean-Paul, CEO of Rapid.Space (+33 629 02 44 25).