From 54d428af62355454fa2719912d75ef4c8c23a65b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 21 Sep 2019 22:46:44 +0200 Subject: etc/systemd/system/autofs.service: Add a 10sec delay before autofs really starts. Workaround for race time condition between network being available and autofs querying LDAP for shares. --- etc/systemd/system/autofs.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/systemd/system/autofs.service b/etc/systemd/system/autofs.service index 5f27e4a..8e68e82 100644 --- a/etc/systemd/system/autofs.service +++ b/etc/systemd/system/autofs.service @@ -7,9 +7,10 @@ Wants=network-online.target nfs-client.target Type=forking PIDFile=/var/run/autofs.pid EnvironmentFile=-/etc/default/autofs +ExecStartPre=sleep 10 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /var/run/autofs.pid ExecReload=/bin/kill -HUP $MAINPID TimeoutSec=180 [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target -- cgit v1.2.3