summaryrefslogtreecommitdiff
path: root/etc/systemd/system/autofs.service
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system/autofs.service')
-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