mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
Fixed Snort init script, Added sleep before chmod.
The Webinterface doesnt show the snort status anymore because the pid file had permission of 600, the chmod seems to happen to fast and permissions were not changed to 644.
This commit is contained in:
@@ -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
|
||||
sleep 1
|
||||
chmod 644 /var/run/snort_$DEVICE.pid
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user