diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-18 00:02:14 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-11-18 00:02:14 -0500 |
commit | 0e16773047fb31d6c9bd86e187a6f8a373f326cf (patch) | |
tree | 8f7a78197c67d4354c8c6e55a654e0ac0225595b /config/snort | |
parent | ae9dfe084de557f9da35070bdcc1149428e0aedd (diff) | |
download | pfsense-packages-0e16773047fb31d6c9bd86e187a6f8a373f326cf.tar.gz pfsense-packages-0e16773047fb31d6c9bd86e187a6f8a373f326cf.tar.bz2 pfsense-packages-0e16773047fb31d6c9bd86e187a6f8a373f326cf.zip |
Ignore shell script RESTART command when a START is already in progress.
Diffstat (limited to 'config/snort')
-rwxr-xr-x | config/snort/snort.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 60959ad6..5cdd5a00 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -2934,6 +2934,7 @@ rc_start() { ### Remove the lock since we have started all interfaces if [ -f {$g['varrun_path']}/snort_pkg_starting.lck ]; then + sleep 2 /bin/rm {$g['varrun_path']}/snort_pkg_starting.lck fi } @@ -2954,8 +2955,12 @@ case $1 in rc_stop ;; restart) - rc_stop - rc_start + if [ ! -f {$g['varrun_path']}/snort_pkg_starting.lck ]; then + rc_stop + rc_start + else + /usr/bin/logger -p daemon.info -i -t SnortRestart "Ignoring RESTART command since Snort is already starting..." + fi ;; esac |