Systemd and the daemon
Posted: Fri Jun 19, 2020 1:18 am
Hello everyone,
I wrote a daemon that will fork itself but when I try to run it from systemd the demonizing code doesn't run and the daemon will not run correctly.
I don't understand why this is the case I used in the service but looking at my daemons log it is skipping the demonize function because it already thinks it's forked?
What can I do to correct this?
Thanks
I wrote a daemon that will fork itself but when I try to run it from systemd the demonizing code doesn't run and the daemon will not run correctly.
I don't understand why this is the case I used
Code: Select all
Type=forking
What can I do to correct this?
Thanks