diff options
author | smos <seth.mos@dds.nl> | 2011-03-02 12:52:42 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-03-02 12:52:42 +0100 |
commit | e77ecd8e14b6255b7880456ef807df5a92e5f451 (patch) | |
tree | 66cb84ba0721cb275da9ff93199c50954a63b347 | |
parent | d161b4d4c56eb7dbb8b468817d88ab6a9d430baa (diff) | |
download | pfsense-e77ecd8e14b6255b7880456ef807df5a92e5f451.zip pfsense-e77ecd8e14b6255b7880456ef807df5a92e5f451.tar.gz |
Attempt to mitigate fork bombs of rc.newipsecdns. Alternatively we should probably bail out with a exit(0);
instead.
-rwxr-xr-x | etc/rc.newipsecdns | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.newipsecdns b/etc/rc.newipsecdns index c8fcabe..141f04a 100755 --- a/etc/rc.newipsecdns +++ b/etc/rc.newipsecdns @@ -43,6 +43,10 @@ while (file_exists("{$g['varrun_path']}/booting")) { sleep(1); } + while(stristr(shell_exec("/bin/ps auxww"), "rc.newipsecdns")) { + // log_error("There is an existing rc.newipsecdns running, sleeping 1 second"); + sleep(1); + } log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing."); /* We will walk the list of hostnames found in the ipsec tunnel |