Snort mailing list archives
Re: Start snort in daemon mode
From: Tim Slighter <tslighter () itc nrcs usda gov>
Date: Tue, 23 Nov 2004 10:42:12 -0700
try this script out: #! /bin/bash # # snortd Start/Stop the snort daemon. # # processname: snortd # pidfile: /var/run/snortd.pid # Source function library. . /etc/init.d/functions RETVAL=0 # See how we were called. prog="Snort" start() { echo -n $"Starting $prog: "daemon /usr/local/bin/snort -D -d -N -c /usr/local/snort/etc/snort.conf -i eth0 -g nobody -u nobody
RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snortd return $RETVAL } stop() { echo -n $"Stopping $prog: " killproc snortd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/snortd return $RETVAL } rhstatus() { status snortd } restart() { stop start } reload() { echo -n $"Reloading snortd daemon configuration: " killproc snortd -HUP retval=$? echo return $RETVAL } case "$1" in start) start ;; stop) stop ;; restart) restart ;; reload) reload ;; status) rhstatus ;; condrestart) [ -f /var/lock/subsys/snortd ] && restart || : ;; *) echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}" exit 1 esac exit $? McKeeman, Samuel wrote:
Hello,I was wondering if anyone could tell me how to start snort to run in daemon mode automatically?Thanks -sam |This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it. |
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users.Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Start snort in daemon mode McKeeman, Samuel (Nov 23)
- Re: Start snort in daemon mode Tim Slighter (Nov 23)
- Re: Start snort in daemon mode Senthil Prabu.S (Nov 24)
- Re: Start snort in daemon mode Tim Slighter (Nov 23)
- <Possible follow-ups>
- RE: Start snort in daemon mode Loch Theary (Nov 23)
- Re: Start snort in daemon mode Tim Slighter (Nov 23)