Freebsd – How to automatically restart a process after a crash or reboot in FreeBsd 11

freebsdsystemd

What's the idiomatic way? I'd prefer the most standard and yet simple way with fewer additional dependencies. Something like an alternative to systemd of Linux.

Best Answer

Installed processes can be restarted automatically by adding to /etc/rc.conf

yourprocess_enable="YES"

FreeBSD System Startup for Linux Users

but that's assuming there is a start up script in /usr/local/etc/rc.d/

The FreeBSD Handbook - Starting Services

Related Topic