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

    Howto restart snort on schedule?

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 2.0k 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.
    • M
      matrix200
      last edited by

      It seems snort memory usage is increasing over time.
      I would like to add a cron job to restart snort every few days.
      Should I just use kilall and ps aux to copy snort's command line to start it again?
      If I did that would it's status be updated properly in status-services and in snort's gui?

      Current network "hardware" :
      Running 2.2RC in Virtualbox 4.2.16.

      Retired:
      ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        I think there are three options:

        • test this script you described

        • write a php to kill snort and then call package startup routine/function

        • reboot at night when memory reachs a specific limit

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • M
          matrix200
          last edited by

          I will try to write such a script.
          call package startup routine/function : do you mean to use the status_services.php for that?
          I am looking at the file and apparently it uses killbypid in order to stop services and start_service(servicename) for startup (for generic services anyway and snort is not one of the special cases there).

          Current network "hardware" :
          Running 2.2RC in Virtualbox 4.2.16.

          Retired:
          ALIX2C2 , 4 gigabyte disk cf card running 2.0 (official release).

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