I need know how run a service with start-stop-daemon with external script condition. Similar to what is done in a systemctl .service file, for example: NOTE: I need to do the same as the ExecCondition parameter does Regards. Answer Inside the /etc/init.d directory is the file with the service we want to modify, for example the emqx service. We will
Tag: start-stop-daemon
Do you know how to make the system automatically restart daemon service?
I have made a daemon service in linux server. It is running well. The service file is stargate.service (in /etc/systemd/system). If by some reasons, the daemon service is die and stop. Do you know how to make the system automatically restart the daemon service ? How to make the daemon service starts if server get rebooted? Answer To respawn your
Can’t read stdout output of external commands after deamonizing Python script
I wrote a RPC server foo in Python that I deamonized with Everything works fine except that every use of subprocess.check_call(some_cmd) or os.popen(some_cmd).read(1048576) in my daemon returns an empty string compared to the case when I start foo in the foreground. The external program some_cmd is still executed sucessfully (as I can see in the logs), yet I don’t have