I'm using Daemon to generate a daemon of a python script I have. However it seems that the logs are not written to file. The simple bash script I'm using (with adapted formatting here for readability):
if ! daemon --name atlas --running; then
daemon --errlog /home/ubuntu/output.log
--dbglog /home/ubuntu/output.log
--output /home/ubuntu/output.log
--stdout /home/ubuntu/output.log
--stderr /home/ubuntu/output.log
--respawn
--name acme
/home/ubuntu/acme.py
fi
It successfully starts the script and keeps it alive without issue. It also logs when the script is killed, but doesn't log any of the print statements in stdout.
When the script hits an exception it seems it dumps all the historical log data that should have printed out at once.