Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How can i get this command to restart at boot and in the background even if i log off

Discussion in 'General Discussion' started by AbeFroman, Sep 7, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    318
    How can i get this command to restart at boot and in the background even if i log off
    snort -c snort.conf -i eth0 -D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I don't know if there's a snort command line option to have it fork, but you should be able to use:

    snort -c snort.conf -i eth0 -D &

    Which should fork it to another process and when you logoff detach from yours as the parent and keep running.

    To have it run at boot, put the same line above in /etc/rc.d/rc.local (on a linux system).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice