From 89e09690017bd8577058b5031722938f18e1e1a4 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Sun, 26 Jun 2005 04:28:51 +0000 Subject: Use new service facilities. --- packages/freeradius.xml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'packages') diff --git a/packages/freeradius.xml b/packages/freeradius.xml index d781c6f1..cbb5def6 100644 --- a/packages/freeradius.xml +++ b/packages/freeradius.xml @@ -10,9 +10,8 @@ FreeRADIUS - /usr/local/etc/rc.d/freeradius.sh - FreeRADIUS daemon - radiusd.sh + freeradius.sh + radiusd @@ -69,9 +68,6 @@ input - - mwexec("rm /usr/local/etc/rc.d/radius*"); - global $config; $fout = fopen("/usr/local/etc/raddb/clients.conf","w"); @@ -86,8 +82,9 @@ $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); + start_service("freeradius"); - + function sync_package_freeradius() { conf_mount_rw(); config_lock(); @@ -112,9 +109,9 @@ fclose($fout); conf_mount_ro(); config_unlock(); - mwexec("/usr/bin/killall -HUP radiusd"); + restart_service("freeradius"); } - + sync_package_freeradius(); -- cgit v1.2.3