3 ms·
In FreeBSD: /usr/sbin/daemon -R 2 \ # If terminated, restart after two seconds -u foouser \ -p /var/run/foo.pid \ -o /var/log/foo.error.
by efortis 4y ago
In FreeBSD:
/usr/sbin/daemon -R 2 \ # If terminated, restart after two seconds
-u foouser \
-p /var/run/foo.pid \
-o /var/log/foo.error.log \
/usr/local/bin/foocmd
https://github.com/uxtely/ops-utils/blob/main/location-server/jails/node_j/usr/local/etc/rc.d/node#L32 https://github.com/uxtely/ops-utils/blob/main/location-serve...
https://www.freebsd.org/cgi/man.cgi?daemon(8) https://www.freebsd.org/cgi/man.cgi?daemon(8)
- Mister_Snuggles 4y agoFor some reason, I couldn't figure this out the last time I had to do it. This seems perfectly reasonable though.
- CoolCold 4y agoI'll take this thread as argument for _systemd_ as example simplified tooling for pretty standard tasks.