Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    FreeBSD version of "inittab"

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 3.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rkelleyrtp
      last edited by

      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:

      –------
      mo:2345:respawn:/usr/local/bin/monit -Ic /usr/local/etc/monitrc

      Google searches have turned up empty.  Any pointers?  Does pfSense have a package like the "inittab" I can install?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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>

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          rkelleyrtp
          last edited by

          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…

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.