wallet-server: update suggested systemd unit
Use `Type=Forking`. By default, `Type=Simple` is used and it expects that the daemon stays forking in the foreground. However, lbrycrdd does the opposite and forks/goes to background. This confuses systemd a little bit: ``` Dec 09 10:30:28 lbry.devass.club systemd[1]: lbrycrdd.service: Unit process 12237 (lbrycrdd) remains running after unit stopped. ``` So basically it thinks that the unit stops working instantly. When the correct type is used, systemd should be able to handle this situations, along with restarts, properly. See also: [AUR systemd service](https://aur.archlinux.org/cgit/aur.git/tree/lbrycrd.service?h=lbrycrd)
This commit is contained in:
parent
2fe727d9c2
commit
08759225a6
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ Description="LBRYcrd daemon"
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/<your_user>/lbrycrdd -datadir="/home/<your_user>/.lbrycrd"
|
||||
ExecStart=/home/<your_user>/lbrycrdd -datadir="/home/<your_user>/.lbrycrd" -pid="/home/<your_user>/pid"
|
||||
Type=Forking
|
||||
PIDFile=/home/<your_user>/.lbrycrd/pid
|
||||
User=<your_user>
|
||||
Group=<your_user_group>
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in a new issue