Browse Source

Systemd now removes the lock file when the service is stopped

Brendan Abolivier 8 years ago
parent
commit
f10c0ba328
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      welcomehome.service

+ 1
- 0
welcomehome.service View File

@@ -5,6 +5,7 @@ Requires=mopidy.service
5 5
 [Service]
6 6
 Type=simple
7 7
 ExecStart=/usr/local/bin/welcomehome /etc/welcomehome/welcomehome.conf
8
+ExecStopPost=-/bin/rm /etc/welcomehome/home.lck
8 9
 Restart=on-abort
9 10
 [Install]
10 11
 WantedBy=multi-user.target