Re:You don't need to daemonize
by twic on Sunday June 28, 2015 @06:03PM
(#9795287)
If the program exits with a special status to indicate non-restartable failure, you could, in principle, recognize that in the process manager and handle it differently, by not restarting. Is there any way to do this in systemd, or in any other process manager?
[ Parent
| on HN ]
Re:You don't need to daemonize
by icebraining on Sunday June 28, 2015 @06:43PM
(#9795411)
Yes, systemd has "RestartPreventExitStatus" to configure a list of exit codes which prevent the automatic restart.