PM2 daemonize any app
remember to set unbuffered output flag -u
before running any python script, otherwise there will be no output in pm2 log
install and setup pm2 as daemon:
1 | sudo apt install npm |
run program as daemon:
1 | pm2 start -n <process_name> <executable_name> -- <process_arguments> |