Closed techman83 closed 10 years ago
Not sure how best to achieve this. One way would be to call a shell script on boot ie 'start_mgr.sh &'
#!/bin/bash
while [ 1 == 1 ]; do
/path/to/station-mgr.pl --no-daemon
done
Another option would be daemon-tools -> http://cr.yp.to/daemontools.html
Thoughts?
Pointer from @nimm - use exec. Found an example of such an operation:
Runs
eventstreamr/baseimage/update-host.sh
And then execs itself. Seems to work correctly. Can be called via the api
wget localhost:3000/manager/update -O -
It would be handy to be able to trigger a restart of the manager daemon via the api, making pushing out code changes much easier if something needs patching in a hurry.