I have several different services that can self-restart (e.g. after an auto-update). Unfortunately, when they restart, they do not come up. I can tell because
service <service name> status tells me it inactive, and it is not listed with
ps. I believe that systemd will kill the service as soon as the main executable dies. The logs do not show any signs of errors.
The service is defines as a systemd service, of
Type=simple and without a
PIDfile=. I like to keep it this way, because systemd 'owns' the process (thus knows the PID) and I do not have to create a writeable folder in
Is there any way to tell systemd to 'rescan' for the newly start process when the original started process died? Note that systemd should not restart the service, therefore most restart-related options I found in the manual don't apply.
OS: Ubuntu 15.04, systemd 219.