[systemd-devel] unable to attach pid to service delegated directory in unified mode after restart
Felip Moll
felip at schedmd.com
Tue Mar 15 15:38:34 UTC 2022
> It's shown as active, so where is the problem?
>
>
I have found the problem.
I start my main process (slurmd) on a terminal, which then forks-exec a
/bin/sleep infinity and creates a new scope adding the pid of the sleep.
If the slurmd is terminated with ctrl+c then the child processes die, so
the scope is destroyed. So I need to daemonize the sleep.
Or... use a service directly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220315/28f48c2e/attachment.htm>
More information about the systemd-devel
mailing list