From 99669d3157241c943c8ff2df79d6721bef9187b3 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Sun, 26 Jun 2005 07:43:20 +0000 Subject: Restart service upon save. --- packages/doormanusers.xml | 3 +-- packages/freeradiusclients.xml | 2 +- packages/freeradiussettings.xml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/doormanusers.xml b/packages/doormanusers.xml index 0f0d4813..86f301e9 100644 --- a/packages/doormanusers.xml +++ b/packages/doormanusers.xml @@ -84,8 +84,7 @@ } } fclose($fout); - mwexec("killall doormand"); - mwexec("/usr/local/etc/rc.d/doormand.sh"); + restart_service("doorman"); conf_mount_ro(); config_unlock(); } diff --git a/packages/freeradiusclients.xml b/packages/freeradiusclients.xml index b331e82e..c24d01eb 100644 --- a/packages/freeradiusclients.xml +++ b/packages/freeradiusclients.xml @@ -73,7 +73,7 @@ fclose($fout); conf_mount_ro(); config_unlock(); - mwexec("killall -HUP radiusd"); + restart_service("freeradius"); } sync_package_freeradius_clients(); diff --git a/packages/freeradiussettings.xml b/packages/freeradiussettings.xml index 9b1a38ad..7db3402d 100644 --- a/packages/freeradiussettings.xml +++ b/packages/freeradiussettings.xml @@ -53,8 +53,8 @@ fclose($fout); conf_mount_ro(); config_unlock(); + restart_service("freeradius"); } - mwexec("killall -HUP radiusd"); sync_package_freeradius_settings(); -- cgit v1.2.3