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:
wzeth authored and GitHub committed 2016-06-12 05:36:05 -04:00
1 parent 2d25b349f7
commit 75a3cf5ede
1 file changed
+13
+13
View 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