|
- [Unit]
- Description=SSHFS Daemon
- After=network-online.target
- Wants=network-online.target
- StartLimitIntervalSec=300
- StartLimitBurst=10
-
- [Install]
- WantedBy=default.target
-
- [Service]
- Type=exec
- User=sshfs
- Group=www-data
- ExecStart=/usr/bin/sshfs -p "{{sshfsport }}" -o allow_root "{{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}"
- ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}"
- RestartSec=20
- Restart=on-failure
|