systemd service file for nntpchan
Assumptions made: 1. The user has a redis_6379.service 2. The user is using /opt/nntpchan as the working directory for the srndv2
This commit is contained in:
parent
2d25b349f7
commit
75a3cf5ede
13
contrib/configs/systemd/nntpchan.service
Normal file
13
contrib/configs/systemd/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