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