瀏覽代碼

Systemd now removes the lock file when the service is stopped

Brendan Abolivier 8 年之前
父節點
當前提交
f10c0ba328
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      welcomehome.service

+ 1
- 0
welcomehome.service 查看文件

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