Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: [Snort-users] Start snort in daemon mode |
|---|---|
| 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"
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
esacexit $?
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.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Snort-users] Start snort in daemon mode, Tim Slighter |
|---|---|
| Next by Date: | [Snort-users] Acid shows sensors as 0, Gentian Hila |
| Previous by Thread: | Re: [Snort-users] Start snort in daemon mode, Senthil Prabu.S |
| Next by Thread: | RE: [Snort-users] Start snort in daemon mode, Loch Theary |
| Indexes: | [Date] [Thread] [Top] [All Lists] |