Pidfile shows CHILD process id and not MAIN process id in background mode
|Reported by:||prilly||Owned by:|
The PIDFile= setting un systemds unit file is a setting that tells
systemd where to look for PID files that it reads in to find
out the main PID of a forking process.
OScam creates a pidfile with process id, when running oscam with background flag the process seems to be forking a child.
OScams pidfile is listing the childe process, (the forked process). When levering the use of systemd this creats problems with systemd monitoring of the process, as the pidfile should contain the MAIN process id and not the CHILD process.
is it possible to fix this so the pidfile is showing the MAIN process id and not the child process when running it in background mode.