From 59156577d3e5364c26b389b977a165592312c855 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Fri, 6 Feb 2004 12:17:48 +0000 Subject: now use check_started --- nfs_wizard/NFS.pm | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/nfs_wizard/NFS.pm b/nfs_wizard/NFS.pm index e40ad943..80b94ce6 100755 --- a/nfs_wizard/NFS.pm +++ b/nfs_wizard/NFS.pm @@ -98,12 +98,20 @@ $o->{pages} = { post => \&do_it, next => 'end' }, - end => { - name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your NFS Server"), - end => 1, - next => 0 -}, -}; + end => { + name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your NFS Server"), + end => 1, + next => 0 + }, + error_end => { + name => N("Failed"), + data => [ { label => N("Relaunch drakwizard, and try to change some parameters.") } ], + no_back => 1, + end => 1, + next => 0, + }, + + }; sub new { my ($class) = @_; @@ -151,7 +159,8 @@ sub do_it { substInFile { s|^(?!#).*$o->{var}{wiz_nfs_dir}\s.*|#$&| } $file; append_to_file($file, $line); system("/usr/sbin/exportfs -a"); - services::start('nfs') if services::is_service_running('nfs') + services::start('nfs') if services::is_service_running('nfs'); + check_started('nfsd'); } 1; -- cgit v1.2.1