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
 [Service]
5
 [Service]
6
 Type=simple
6
 Type=simple
7
 ExecStart=/usr/local/bin/welcomehome /etc/welcomehome/welcomehome.conf
7
 ExecStart=/usr/local/bin/welcomehome /etc/welcomehome/welcomehome.conf
8
+ExecStopPost=-/bin/rm /etc/welcomehome/home.lck
8
 Restart=on-abort
9
 Restart=on-abort
9
 [Install]
10
 [Install]
10
 WantedBy=multi-user.target
11
 WantedBy=multi-user.target