From b866047d3fce9b28659d2d3d496665656d955411 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Fri, 30 Sep 2022 07:10:00 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.service.j2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/playbooks/sshfs.service.j2 b/playbooks/sshfs.service.j2 index 5b87c64..0e3fb29 100644 --- a/playbooks/sshfs.service.j2 +++ b/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