On 2020-01-27 19:13, Patrick Kristiansen wrote:
> Is there something like the FreeBSD daemon(8) command for OpenBSD, which
> can run a process in the background and restart it if it crashes?

Of course init does this for getty but as others have pointed out, restarting
daemons listening to the network during unexpected occurrences, like the kernel
killing it during exploitation is a terrible default. I hear it in GoLang all
the time and it irks me. I am against panic handling in Go generally but perhaps
there will be some occasion where it may be of some use for semi-unexpected
issues (perhaps hw redundancy, though generally that is better handled by having
redundant complete systems).

You can always use monit from pkg/ports for anything you have decided is an
exception but it is good that OpenBSD makes people stop and think and maybe fix
first.

Reply via email to