Ansible repo for digital ocean projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sshfs.service.j2 453 B

2 years ago
2 years ago
12345678910111213141516171819
  1. [Unit]
  2. Description=SSHFS Daemon
  3. After=network-online.target
  4. Wants=network-online.target
  5. StartLimitIntervalSec=300
  6. StartLimitBurst=10
  7. [Install]
  8. WantedBy=default.target
  9. [Service]
  10. Type=exec
  11. User=sshfs
  12. Group=www-data
  13. ExecStart=/usr/bin/sshfs -p {{sshfsport }} -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}
  14. ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}"
  15. RestartSec=20
  16. Restart=on-failure