Changes of Revision 7
[-] [+] | Changed | snort.spec |
[-] [+] | Changed | snortd.suse.init ^ |
@@ -52,6 +52,8 @@ # Source the local configuration file . /etc/sysconfig/snort +SNORT_SOCKET=/var/run/snort_${INTERFACE}.pid +INTERFACE_CONF=${INTERFACE} # Convert the /etc/sysconfig/snort settings to something snort can # use on the startup line. if [ "$ALERTMODE"X = "X" ]; then @@ -166,8 +168,8 @@ stop) echo -n "Shutting down snort " /sbin/killproc $SNORT_BIN > /dev/null 2>&1 - chown -R $USER:$GROUP /var/run/snort_eth0.* && - rm -f /var/run/snort_eth0.pi* + chown -R $USER:$GROUP /var/run/snort_${INTERFACE_CONF}.* && + rm -f /var/run/snort_${INTERFACE_CONF}.pi* rc_status -v ;; restart) |