From: Christian Schmidt Date: Fri, 7 May 2010 16:13:07 +0000 (+0200) Subject: Fixed Snort init script, Added sleep before chmod. X-Git-Tag: v2.9-beta1~332 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=0d7da887ad4d80e712bd488bd6906bd8fe4710fb 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. --- diff --git a/src/initscripts/init.d/snort b/src/initscripts/init.d/snort index a2db0de0fb..981362a030 100644 --- a/src/initscripts/init.d/snort +++ b/src/initscripts/init.d/snort @@ -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