I have a python script daemonized using the code in this SO answer.
I created the init.d script at /etc/init.d/MakeDCP
with content
#!/bin/bash
python /opt/some/path/to/file/MakeDCPLinux.py start
Then ran update-rc.d MakeDCP defaults
Until here everything is fine. However, after restart the PID file is created and the code goes to the loop but the code is not running when I log in.
The command works from the terminal.
The Linux server is a VM with no GUI.