|
- [Unit]
- Description="SSHFS Daemon"
- After=network-online.target
- Wants=network-online.target
-
- [Install]
- WantedBy=default.target
-
- [Mount]
- Type=fuse.sshfs
- What="{{ [username,'@',hostname,':',remotepath,item,'/' ]|join() }}"
- Where="{{[ localpath,item,'/']|join() }}"
- Options="_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount"
- RestartSec=20
- Restart=on-failure
|