Systemd config file
- tested on Debian 9, you may have to adjust paths/uids if your deployment differs
This commit is contained in:
parent
dd780f8d80
commit
395812c0f8
18
packages/systemd/bitmessage.service
Normal file
18
packages/systemd/bitmessage.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Bitmessage Daemon
|
||||||
|
After=network.target auditd.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/python2 /usr/src/PyBitmessage/src/bitmessagemain.py
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
Type=forking
|
||||||
|
PIDFile=/var/lib/bitmessage/.config/PyBitmessage/singleton.lock
|
||||||
|
User=bitmessage
|
||||||
|
Group=nogroup
|
||||||
|
WorkingDirectory=/var/lib/bitmessage
|
||||||
|
Environment="HOME=/var/lib/bitmessage"
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user