]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/snort
Fixed Snort init script, Added sleep before chmod.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / snort
index a2db0de0fb4286095caabe0dd2724dc5be843c60..981362a030afbce5ede2d6d267e5e93b90d3bf07 100644 (file)
@@ -66,6 +66,7 @@ case "$1" in
                         boot_mesg "Starting Intrusion Detection System on $DEVICE..."
                         /usr/sbin/snort -c /etc/snort/snort.conf -i $DEVICE -D -l /var/log/snort --create-pidfile --nolock-pidfile --pid-path /var/run/
                         evaluate_retval
                         boot_mesg "Starting Intrusion Detection System on $DEVICE..."
                         /usr/sbin/snort -c /etc/snort/snort.conf -i $DEVICE -D -l /var/log/snort --create-pidfile --nolock-pidfile --pid-path /var/run/
                         evaluate_retval
+                       sleep 1
                         chmod 644 /var/run/snort_$DEVICE.pid
                 done
                 
                         chmod 644 /var/run/snort_$DEVICE.pid
                 done