瀏覽代碼

working on changes, and debugging

master
Erin Sims 2 年之前
父節點
當前提交
b866047d3f
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      playbooks/sshfs.service.j2

+ 9
- 1
playbooks/sshfs.service.j2 查看文件

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


Loading…
取消
儲存