aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeradius.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-02-21 22:48:18 +0000
committerColin Smith <colin@pfsense.org>2005-02-21 22:48:18 +0000
commit04124c6a7306b116647b2d5c40bf52c623161e60 (patch)
tree7a302c44857904322b9d6ba1b36e92cbf4f72da0 /packages/freeradius.xml
parent7fcacd91cfaefa8fb3c77d7b8b9d6c4ba0b2abfc (diff)
downloadpfsense-packages-04124c6a7306b116647b2d5c40bf52c623161e60.tar.gz
pfsense-packages-04124c6a7306b116647b2d5c40bf52c623161e60.tar.bz2
pfsense-packages-04124c6a7306b116647b2d5c40bf52c623161e60.zip
Fix radiusd automatic (re)starting.
Diffstat (limited to 'packages/freeradius.xml')
-rw-r--r--packages/freeradius.xml7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/freeradius.xml b/packages/freeradius.xml
index 24f1ccb6..b7bd9229 100644
--- a/packages/freeradius.xml
+++ b/packages/freeradius.xml
@@ -66,12 +66,12 @@
fclose($fout);
mwexec("rm /usr/local/etc/rc.d/radiusd*");
$fout = fopen("/usr/local/etc/rc.d/radiusd.sh","w");
- fwrite($fout,"#!/bin/sh\n\n/usr/local/sbin/radiusd -d /usr/local/etc/raddb\n");
+ fwrite($fout,"#!/bin/sh\n\n/usr/local/sbin/radiusd -X -d /usr/local/etc/raddb\n");
fclose($fout);
$fout = fopen("/usr/local/etc/radiusd.conf.dynamic","w");
fwrite($fout, "{\nipaddr = 127.0.0.1\nport = 0\ntype = auth\n}\n\n");
fclose($fout);
- mwexec("chmod a+x /usr/local/etc/rc.d/radiusd.sh");
+ mwexec("chmod a+x /usr/local/etc/rc.d/radiusd.sh &");
mwexec("/usr/local/etc/rc.d/radiusd.sh");
</custom_php_install_command>
<custom_php_command_before_form>
@@ -85,8 +85,7 @@
}
}
fclose($fout);
- mwexec("/usr/bin/killall -HUP radiusd");
- mwexec("/usr/local/etc/rc.d/radiusd.sh");
+ system("/usr/bin/killall -HUP radiusd");
}
</custom_php_command_before_form>
<custom_add_php_command>