Revision af4c040e
Added by Ermal LUÇI over 14 years ago
etc/rc.newipsecdns | ||
---|---|---|
43 | 43 |
while (file_exists("{$g['varrun_path']}/booting")) { |
44 | 44 |
sleep(1); |
45 | 45 |
} |
46 |
while(stristr(shell_exec("/bin/ps auxww"), "rc.newipsecdns")) { |
|
47 |
// log_error("There is an existing rc.newipsecdns running, sleeping 1 second"); |
|
48 |
sleep(1); |
|
49 |
} |
|
46 |
$ipseclck = lock('ipsecdns', LOCK_EX); |
|
50 | 47 |
|
51 | 48 |
log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing."); |
52 | 49 |
/* We will walk the list of hostnames found in the ipsec tunnel |
... | ... | |
59 | 56 |
vpn_ipsec_configure(); |
60 | 57 |
|
61 | 58 |
filter_configure(); |
59 |
|
|
60 |
unlock($ipseclck); |
|
62 | 61 |
?> |
Also available in: Unified diff
Ticket #1356 use locking here rather than ps to serialize execution.