Difference between revisions of "Talk:NFS"

From ArchWiki
Jump to: navigation, search
(Suggested changes to automatic mount handling)
(Standardize the script placement)
Line 4: Line 4:
 
  # systemctl enable NetworkManager-wait-online
 
  # systemctl enable NetworkManager-wait-online
 
I can't help thinking that this is a bit of a kludge in any event, and is a scenario that should be handled automatically by {{ic|systemd}}.
 
I can't help thinking that this is a bit of a kludge in any event, and is a scenario that should be handled automatically by {{ic|systemd}}.
 +
 
--[[User:Blippy|Blippy]] ([[User talk:Blippy|talk]]) 18:32, 8 September 2013 (UTC)
 
--[[User:Blippy|Blippy]] ([[User talk:Blippy|talk]]) 18:32, 8 September 2013 (UTC)
 +
 +
 +
{{ic|/etc/systemd/system/auto_share.service}} is a bad place to create the file. Instead, do it in the standard way by creating it as {{ic|/lib/systemd/system/auto_share.service}} and re-enabling it using the command
 +
# systemctl reenable auto_share.service
 +
 +
[[User:Blippy|Blippy]] ([[User talk:Blippy|talk]]) 19:32, 8 September 2013 (UTC)

Revision as of 19:32, 8 September 2013

I think that /etc/systemd/system/auto_share.service should contain the following line after Description:

After=NetworkManager-wait-online.service

The rationale for it is that you need to wait for the network to be up and running before attempting an NFS connect from client-side. You need to enable that service like so:

# systemctl enable NetworkManager-wait-online

I can't help thinking that this is a bit of a kludge in any event, and is a scenario that should be handled automatically by systemd.

--Blippy (talk) 18:32, 8 September 2013 (UTC)


/etc/systemd/system/auto_share.service is a bad place to create the file. Instead, do it in the standard way by creating it as /lib/systemd/system/auto_share.service and re-enabling it using the command

# systemctl reenable auto_share.service

Blippy (talk) 19:32, 8 September 2013 (UTC)