Skip to content
Advertisement

Tag: start-stop-daemon

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

Advertisement