diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-02-06 12:17:48 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-02-06 12:17:48 +0000 |
commit | 59156577d3e5364c26b389b977a165592312c855 (patch) | |
tree | c6ed84eeab3ece9b53a83b9ec0f92af11b11641a /nfs_wizard | |
parent | 2b8d4b9ebf8449d474ffde8ae3d88fa1e6e9008a (diff) | |
download | drakwizard-59156577d3e5364c26b389b977a165592312c855.tar drakwizard-59156577d3e5364c26b389b977a165592312c855.tar.gz drakwizard-59156577d3e5364c26b389b977a165592312c855.tar.bz2 drakwizard-59156577d3e5364c26b389b977a165592312c855.tar.xz drakwizard-59156577d3e5364c26b389b977a165592312c855.zip |
now use check_started
Diffstat (limited to 'nfs_wizard')
-rwxr-xr-x | nfs_wizard/NFS.pm | 23 |
1 files 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; |