Systemd service file
Here is an example systemd config. It makes some assumptions: 1. The user has a systemd service called redis_6379.service (the redis install utils have this as default). 2. srndv2 is contained in /opt/nntpchan
This commit is contained in:
parent
57232aeaf0
commit
29149eb452
13
contrib/config/nntpchan.service
Normal file
13
contrib/config/nntpchan.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=NNTPChan Server
|
||||||
|
Requires=redis_6379.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/opt/nntpchan
|
||||||
|
ExecStart=/opt/nntpchan/srndv2 run
|
||||||
|
ExecStop=/bin/kil -15 $MAINPID
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Reference in New Issue
Block a user