summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-03-04 17:20:07 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-03-04 17:20:07 +0000
commit60f601835d76ca3e1571fc27129ef91d4ae7a9cc (patch)
tree5bdb81343da4b0a8847e9d5d4bccf7a0518a8172
parent6710e721fd6adfe315a7f147b32378f592f10096 (diff)
downloaddrakwizard-60f601835d76ca3e1571fc27129ef91d4ae7a9cc.tar
drakwizard-60f601835d76ca3e1571fc27129ef91d4ae7a9cc.tar.gz
drakwizard-60f601835d76ca3e1571fc27129ef91d4ae7a9cc.tar.bz2
drakwizard-60f601835d76ca3e1571fc27129ef91d4ae7a9cc.tar.xz
drakwizard-60f601835d76ca3e1571fc27129ef91d4ae7a9cc.zip
use check_started, add restart nfsd
-rw-r--r--installsrv_wizard/Installsrv.pm4
1 files changed, 2 insertions, 2 deletions
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 {