The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    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
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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).
     
Loading...

Share This Page