Ver código fonte

working on changes, and debugging

master
Erin Sims 2 anos atrás
pai
commit
b866047d3f
1 arquivos alterados com 9 adições e 1 exclusões
  1. +9
    -1
      playbooks/sshfs.service.j2

+ 9
- 1
playbooks/sshfs.service.j2 Ver arquivo

@@ -1,11 +1,19 @@
[Unit]
Description=SSHFS Daemon
After=network.target sound.target
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=10

[Install]
WantedBy=default.target

[Service]
Type=simple
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


Carregando…
Cancelar
Salvar