From 29149eb45265b472155899453f47ace0036258ac Mon Sep 17 00:00:00 2001 From: wzeth Date: Sun, 12 Jun 2016 05:29:43 -0400 Subject: [PATCH] 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 --- contrib/config/nntpchan.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/config/nntpchan.service diff --git a/contrib/config/nntpchan.service b/contrib/config/nntpchan.service new file mode 100644 index 0000000..a6e8c52 --- /dev/null +++ b/contrib/config/nntpchan.service @@ -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