diff options
author | Renato Botelho <renato@netgate.com> | 2015-07-15 13:48:42 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-15 13:48:42 -0300 |
commit | a50dc43bf9d0c08429eaf25c7647069fa25f07ee (patch) | |
tree | 4b63864e6734118bd2eb10c4ad8bb336da4b9044 /config/freeradius2/freeradius.inc | |
parent | 2a323a0e26f769ad71ca75763fe88812d24c1acf (diff) | |
parent | d95c0ad1e654392bafdc63324ce310710a7f4dbd (diff) | |
download | pfsense-packages-a50dc43bf9d0c08429eaf25c7647069fa25f07ee.tar.gz pfsense-packages-a50dc43bf9d0c08429eaf25c7647069fa25f07ee.tar.bz2 pfsense-packages-a50dc43bf9d0c08429eaf25c7647069fa25f07ee.zip |
Merge pull request #898 from k-paulius/fix-4346v2
Diffstat (limited to 'config/freeradius2/freeradius.inc')
-rw-r--r-- | config/freeradius2/freeradius.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index 76da6213..8472ea5e 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -76,6 +76,15 @@ if ($pfs_version == "2.2") { } function freeradius_deinstall_command() { + $pidFile = "/var/run/radiusd.pid"; + $i = 0; + + while (isvalidpid($pidFile) && $i < 3) { + $sig = ($i == 2 ? SIGKILL : SIGTERM); + sigkillbypid($pidFile, $sig); + sleep(1); + $i++; + } return; } |