summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-04-12 13:05:54 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-04-12 13:05:54 +0200
commit598e6cc84a3d8b6495d46b52182508da7fa979cd (patch)
tree6d4b619bc1f6ae60abbf4a948817d7a55a862d94
parent0a2cd650923e42a4b54e01314c1345d59c9cef23 (diff)
downloaditzks-systems-598e6cc84a3d8b6495d46b52182508da7fa979cd.zip
itzks-systems-598e6cc84a3d8b6495d46b52182508da7fa979cd.tar.gz
itzks-systems-598e6cc84a3d8b6495d46b52182508da7fa979cd.tar.bz2
etc/systemd/system/autofs.service: Custom autofs.service that wants nfs-client.target, too.
-rw-r--r--etc/systemd/system/autofs.service15
1 files changed, 15 insertions, 0 deletions
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