Comment by ptx
1 day ago
> the thing you were running was generally expected to do the double-fork hack itself and otherwise do 'well behaved daemon' things
FreeBSD has a general utility that does this for you, daemon(8): https://man.freebsd.org/cgi/man.cgi?query=daemon&sektion=8
I also use it every time I need a service which should be restarted on crash. It's a very handy utility.