Navigation

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

    FreeBSD version of "inittab"

    pfSense Packages
    2
    3
    3196
    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
      • jimp
        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>

        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

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy