From 598e6cc84a3d8b6495d46b52182508da7fa979cd Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 12 Apr 2019 13:05:54 +0200 Subject: etc/systemd/system/autofs.service: Custom autofs.service that wants nfs-client.target, too. --- etc/systemd/system/autofs.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 etc/systemd/system/autofs.service (limited to 'etc') diff --git a/etc/systemd/system/autofs.service b/etc/systemd/system/autofs.service new file mode 100644 index 0000000..5f27e4a --- /dev/null +++ b/etc/systemd/system/autofs.service @@ -0,0 +1,15 @@ +[Unit] +Description=Automounts filesystems on demand +After=network.target ypbind.service sssd.service network-online.target remote-fs.target +Wants=network-online.target nfs-client.target + +[Service] +Type=forking +PIDFile=/var/run/autofs.pid +EnvironmentFile=-/etc/default/autofs +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 -- cgit v1.2.3