Bug 8714 - After defining NFS share with draknfs, share is not available until manual restart
Summary: After defining NFS share with draknfs, share is not available until manual re...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Olivier Blin
QA Contact:
URL:
Whiteboard: 3beta2
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-16 21:49 CET by Derek Jennings
Modified: 2013-02-19 22:25 CET (History)
3 users (show)

See Also:
Source RPM: drakx-net-1.16-1.mga3
CVE:
Status comment:


Attachments
patch to allow draknfs to export shares (579 bytes, patch)
2013-01-16 23:18 CET, Derek Jennings
Details | Diff

Description Derek Jennings 2013-01-16 21:49:15 CET
When using draknfs to define NFS shares.

When draknfs restarts the NFS server it uses the command "service nfs-server reload" which is not available in Mageia 3 with systemd

Either systemd needs to be updated to allow the command or draknfs has to be modified to reload the server another way (exportfs -ra seems to work)
Derek Jennings 2013-01-16 21:49:49 CET

Whiteboard: (none) => 3beta2

Comment 1 Derek Jennings 2013-01-16 23:18:59 CET
Created attachment 3386 [details]
patch to allow draknfs to export shares

This works for me.
Derek Jennings 2013-01-16 23:19:35 CET

Keywords: (none) => PATCH

Manuel Hiebel 2013-01-20 12:56:15 CET

CC: (none) => thierry.vignaud
Assignee: bugsquad => mageia

Comment 2 Thierry Vignaud 2013-01-20 13:30:34 CET
I hesitate with using systemctl in order to reload the service

CC: (none) => mageia

Comment 3 Colin Guthrie 2013-01-26 20:01:02 CET
I would generally recommend running the exportfs command as per Derek's patch.

An alternative would be to modify the systemd nfs-server.service unit to support an ExecReload action that simply ran this same command instead. That way, there would be no changes needed in draknfs.

Dunno which is better.

Adding Guillomovitch as he's responsible for NFS stuff.

CC: (none) => guillomovitch

Comment 4 Thierry Vignaud 2013-02-19 20:29:35 CET
Fixed in SVN.
Can be altered if Guillaume thinks it's better

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Guillaume Rousse 2013-02-19 22:25:58 CET
I think it's safer to resort to low-level commands directly nowadays, instead of modifying systemd units to fit with draknfs needs. So let's keep it this way.

Note You need to log in before you can comment on or make changes to this bug.