From caa922add1fa7828b22b9417e84b400b8185ce76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 00:50:48 +0100 Subject: [PATCH] add ExecStop --- workdirfs.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workdirfs.service b/workdirfs.service index 35e6b92..2766e6f 100644 --- a/workdirfs.service +++ b/workdirfs.service @@ -2,4 +2,6 @@ Description=Daily working directory ~/Work [Service] -ExecStart=/usr/bin/python3 /usr/local/bin/workdirfs.py +Environment=SRC=%h/archive DST=%h/Work +ExecStart=/usr/bin/python3 /usr/local/bin/workdirfs.py ${SRC} ${DST} +ExecStop=/usr/bin/fusermount -u ${DST}