Adds systemd service targets for monitoring
This commit is contained in:
parent
1332610b57
commit
7dcd6ab37e
2 changed files with 23 additions and 0 deletions
8
config/comment-server.target
Normal file
8
config/comment-server.target
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description="LBRY Comment Server Watchdog"
|
||||||
|
After=network.target
|
||||||
|
Requires=comment-server@5921.service comment-server@5922.service comment-server@5923.service comment-server@5924.service
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
15
config/comment-server@.service
Normal file
15
config/comment-server@.service
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description="LBRY Comment Server #%i"
|
||||||
|
PartOf=comment-server.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=oleg
|
||||||
|
WorkingDirectory=/home/lbry/comment-server/
|
||||||
|
ExecStart=/home/lbry/comment-server/venv/bin/commentserv --port %i
|
||||||
|
Restart=on-failure
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue