serviced fix doc (#645)
This commit is contained in:
parent
11006ef7ed
commit
b4a6b5a1d9
1 changed files with 12 additions and 6 deletions
|
|
@ -78,17 +78,23 @@ Systemd is great for taking care of your LNbits instance. It will start it on bo
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LNbits
|
Description=LNbits
|
||||||
#Wants=lnd.service # you can uncomment these lines if you know what you're doing
|
# you can uncomment these lines if you know what you're doing
|
||||||
#After=lnd.service # it will make sure that lnbits starts after lnd (replace with your own backend service)
|
# it will make sure that lnbits starts after lnd (replace with your own backend service)
|
||||||
|
#Wants=lnd.service
|
||||||
|
#After=lnd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/home/bitcoin/lnbits # replace with the absolute path of your lnbits installation
|
# replace with the absolute path of your lnbits installation
|
||||||
ExecStart=/home/bitcoin/lnbits/venv/bin/uvicorn lnbits.__main__:app --port 5000 # same here
|
WorkingDirectory=/home/bitcoin/lnbits
|
||||||
User=bitcoin # replace with the user that you're running lnbits on
|
# same here
|
||||||
|
ExecStart=/home/bitcoin/lnbits/venv/bin/uvicorn lnbits.__main__:app --port 5000
|
||||||
|
# replace with the user that you're running lnbits on
|
||||||
|
User=bitcoin
|
||||||
Restart=always
|
Restart=always
|
||||||
TimeoutSec=120
|
TimeoutSec=120
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
Environment=PYTHONUNBUFFERED=1 # this makes sure that you receive logs in real time
|
# this makes sure that you receive logs in real time
|
||||||
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue