From 60f601835d76ca3e1571fc27129ef91d4ae7a9cc Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 4 Mar 2004 17:20:07 +0000 Subject: use check_started, add restart nfsd --- installsrv_wizard/Installsrv.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'installsrv_wizard') diff --git a/installsrv_wizard/Installsrv.pm b/installsrv_wizard/Installsrv.pm index ed3f2bc7..51612dd7 100644 --- a/installsrv_wizard/Installsrv.pm +++ b/installsrv_wizard/Installsrv.pm @@ -108,7 +108,7 @@ sub add_install_dir { print " - " . $NFSEXPORTS . " ready\n"; } else { append_to_file($NFSEXPORTS, "$INSTALLDIR *(async,rw,no_root_squash)\n"); - system("service nfs reload"); + check_started($_) foreach qw(nfs nfsd); } } @@ -128,7 +128,7 @@ sub add_http_link { if (! -f $LINK) { symlink $PATH, $LINK; } - system("service httpd restart"); + check_started("httpd") } sub cp_data { -- cgit v1.2.1