FreeBSD version of "inittab"
Looking for the FreeBSD (and pfSense) version of the /etc/inittab. I am installing monit and need to make sure it stays running no matter what. On RHEL and CentOS, I can add the following line to /etc/inittab to make sure it always runs:
Google searches have turned up empty. Any pointers? Does pfSense have a package like the "inittab" I can install?
There is no direct equivalent to such a thing on FreeBSD or pfSense.
You can place a startup script in /usr/local/etc/rc.d/ or use a <shellexec>tag in the config, both of those would start an item at boot time, but there isn't a pre-installed program that will monitor a process to ensure it is running constantly.</shellexec>
Thanks for the info. I guess the next best thing is to run a cron job (some sort of script) to see if monit is still running.
BTW - I have been very successful getting monit installed and running. In fact, I can scan /var/log/system.log for CARP messages and alert me if a failover happens. I have been able to hook monit with the "M/Monit" package so I can get a centralized view of all pfSense firewalls (stats, etc). I know a few people were looking for that functionality in 1.2.3…