[PATCH 04/13] autofs-5.1.4 - add units After line to include statd service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



autofs needs to ensure statd is started before any NFS mounts
are attempted. This is because if the first NFS mount starts
the service and the mount is an automounted directory that is
included in the PATH used by systemctl (eg. /usr/local/bin)
the mount cannot complete.

Add rpc-statd.service to the unit "After=" line to try and
ensure it is started before automount.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG                 |    1 +
 samples/autofs.service.in |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 1e11c3d5..b9925cf7 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -22,6 +22,7 @@ xx/xx/2018 autofs-5.1.5
 - improve hostname lookup error logging.
 - fix rpm spec install premissions on auto.net and auto.smb.
 - tiny patch for autofs typo and possible bug.
+- add units After line to include statd service.
 
 19/12/2017 autofs-5.1.4
 - fix spec file url.
diff --git a/samples/autofs.service.in b/samples/autofs.service.in
index 918fc93c..766fc5a5 100644
--- a/samples/autofs.service.in
+++ b/samples/autofs.service.in
@@ -1,6 +1,6 @@
 [Unit]
 Description=Automounts filesystems on demand
-After=network.target ypbind.service sssd.service network-online.target remote-fs.target
+After=network.target ypbind.service sssd.service network-online.target remote-fs.target rpc-statd.service rpcbind.service
 Wants=network-online.target rpc-statd.service rpcbind.service
 
 [Service]

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux