services/siahsd: Fix startup after reboot
This commit is contained in:
parent
04288259ca
commit
2ebc9f54e6
3 changed files with 14 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
[siahsd]
|
||||
pid file = /run/siahsd/siahsd.pid
|
||||
pid file = /var/lib/siahsd/siahsd.pid
|
||||
log file = /var/log/siahsd/siahsd.log
|
||||
log level = 3
|
||||
foreground = 0
|
||||
|
|
|
@ -6,9 +6,10 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/siahsd/siahsd.pid
|
||||
PIDFile=/var/lib/siahsd/siahsd.pid
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
ExecStartPre=-/bin/rm /var/lib/siahsd/siahsd.pid
|
||||
ExecStart=/usr/local/src/siahsd/build/siahsd
|
||||
User=siahsd
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue