From fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Sun, 2 Mar 2003 12:46:22 +0000 Subject: start nfs server if not running at the end of nfs wizard --- nfs_wizard/scripts/NFSConf.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nfs_wizard/scripts') diff --git a/nfs_wizard/scripts/NFSConf.pm b/nfs_wizard/scripts/NFSConf.pm index e21327bb..580aa9ef 100644 --- a/nfs_wizard/scripts/NFSConf.pm +++ b/nfs_wizard/scripts/NFSConf.pm @@ -19,9 +19,11 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. package NFSConf; +use lib "/usr/lib/libDrakX"; require "__WIZ_HOME__/common/scripts/Vareqval.pm"; require "__WIZ_HOME__/common/scripts/IFCFG.pm"; use MDK::Common; +use services; use strict; my $o = IFCFG->new(); @@ -60,5 +62,6 @@ sub do_it { substInFile { s|^(?!\#).*$ENV{wiz_nfs_dir}\s.*|\#$&|} $file; append_to_file($file, $line); system("/usr/sbin/exportfs -a"); - 10; + services::is_service_running('nfs') and services::start('nfs'); + 10 } -- cgit v1.2.1