From: Sart C. <sar...@ya...> - 2007-10-09 06:02:26
|
This is my script the stop section does not work OK #!/bin/sh # # snort_inline This script controls the snort_inline daemon. # # chkconfig: 2345 79 32 # description: snort_inline # processname: snort_inline # pidfile: /var/run/snort_eth0.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network proc="snort_inline" prog="/usr/local/bin/snort_inline" prog_base="$(basename ${prog})" prog_config_file="/etc/snort_inline/snort_inline.conf" # Source configuration. [ -e /etc/sysconfig/${prog_base} ] && . /etc/sysconfig/${prog_base} RETVAL=0 case "$1" in start) action $"Starting ${prog_base}:" ${prog} -c ${prog_config_file} -D -Q -N -l /var/log/snort_inline -t /var/log/snort_inline -v --nolock-pidfile RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${prog_base} ;; stop) killproc $proc RETVAL=$? if [ $RETVAL -eq 0 ] ; then echo "Stopping ${prog_base}" rm -f /var/lock/subsys/${prog_base} else echo "Stopping ${prog_base}" fi ;; status) status ${prog_base} RETVAL=$? ;; restart) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 esac exit $RETVAL Jacques Beaudoin <jac...@cs...> wrote: show us your script and we might be able to help you fix it... Regards, Will On 10/8/07, Sart Cole wrote: > Hi, > > I'm a new member to this list. > > I have snort_inline running on my firewall but my > /etc/rd.d/init.d/snort_inline script > does not stop snort_inline correctly. > > Can someone post is working /etc/rc.d/init.d/snort_inline script > > Thanks > Sartcole > > > ________________________________ > Be smarter than spam. See how smart SpamGuard is at giving junk email the > boot with the All-new Yahoo! Mail > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Snort-inline-users mailing list > Sno...@li... > https://lists.sourceforge.net/lists/listinfo/snort-inline-users > > ----- Fin du message transféré ----- ---------------------------------------------------- Ce message a été acheminé par le Webmail de la CSPI. --------------------------------- All new Yahoo! Mail --------------------------------- Get news delivered. Enjoy RSS feeds right on your Mail page. |