From 76ee807584fc11f110729c2e6b8cc8501d2c9311 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 4 Jan 2008 22:34:19 +0000 Subject: [PATCH] No need for full restart after changing password --- changepass.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changepass.pl b/changepass.pl index f623ccf29..71b821032 100755 --- a/changepass.pl +++ b/changepass.pl @@ -50,11 +50,11 @@ foreach $v (values %users) { close(USERS); print "Updated password of Webmin user $user\n"; -# Send a signal to restart miniserv, if running +# Send a signal to have miniserv reload it's config if (open(PID, $config{'pidfile'})) { =~ /(\d+)/; $pid = $1; close(PID); - kill('HUP', $pid); + kill('USR1', $pid); } sub usage