From 3b674adaeee147def38a782274200580f7274ee1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 19 Feb 2013 19:29:24 +0000 Subject: fix nfs server having switch to systemd unit (mga#3386, Derek Jennings) --- bin/draknfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/draknfs') diff --git a/bin/draknfs b/bin/draknfs index 4337c69..a05c641 100755 --- a/bin/draknfs +++ b/bin/draknfs @@ -84,7 +84,7 @@ sub restart_dialog() { } sub reload_dialog() { - wait_action("service nfs-server reload"); + wait_action("exportfs -ra"); } sub wait_action { @@ -577,7 +577,7 @@ my $menu = $factory->get_widget('
'); my $okcancel = create_okcancel({ cancel_clicked => sub { ugtk2->exit }, ok_clicked => sub { &write_conf; - run_program::raw({ detach => 1 }, "service nfs-server reload"); + run_program::raw({ detach => 1 }, "exportfs -ra"); ugtk2->exit }, }, ); -- cgit v1.2.1