Explorar el Código

working on changes, and debugging

master
Erin Sims hace 2 años
padre
commit
b866047d3f
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      playbooks/sshfs.service.j2

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

@@ -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


Cargando…
Cancelar
Guardar