|
@@ -12,7 +12,7 @@ WantedBy=default.target |
|
|
Type=exec |
|
|
Type=exec |
|
|
User=sshfs |
|
|
User=sshfs |
|
|
Group=www-data |
|
|
Group=www-data |
|
|
ExecStart=/usr/bin/sshfs -p {{sshfsport }} -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }} |
|
|
|
|
|
|
|
|
ExecStart=/usr/bin/sshfs -p {{sshfsport }} -o rw,allow_other,idmap=user,uid=1000,gid=1000,ServerAliveInterval=10,ServerAliveCountMax=1,_netdev {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }} |
|
|
ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}" |
|
|
ExecStop=/usr/bin/umount "{{[ localpath,item,'/']|join() }}" |
|
|
RestartSec=20 |
|
|
RestartSec=20 |
|
|
Restart=on-failure |
|
|
Restart=on-failure |
|
|