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 /var/run/ first.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.
Self-restarting service does not restart with systemd
systemd;services
No, there is not. This is a hard limitation imposed by systemd, and a substantial breaking change to the expectation of how processes work. I really hope that I'm wrong here, and I just haven't found it yet.FWIW, you're not alone. The best suggestions so far are to use at, cron, or systemd timer units. I understand if that's small consolation to you.