[systemd-devel] How do I remove dead process managed by Systemd?

Yun-Chih Chen yunchih.cat at gmail.com
Mon Dec 4 15:15:33 UTC 2017


Hi, fellows:

How do I remove a dead process (D-state process) wrapped as a Systemd
service unit?  The process's parent is systemd (pid=1) and I still did not
find a way to remove such process without rebooting.  I have tried the
following:

$ systemctl restart <my_service>  # timeout
$ systemctl daemon-reexec
$ kill -9 <pid of my process> # won't work of course

Or anyone knows of hacks that do the trick?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171204/e3710f3a/attachment.html>


More information about the systemd-devel mailing list