]> dxcluster.net Git - spider.git/commitdiff
add default systemd service (init) file
authorDirk Koopman <djk@tobit.co.uk>
Fri, 11 Aug 2017 14:02:13 +0000 (15:02 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 11 Aug 2017 14:02:13 +0000 (15:02 +0100)
Changes
dxspider.service [new file with mode: 0644]

diff --git a/Changes b/Changes
index d17fa120d0f965437de2c7ff89fe4b76a8a0e618..1563721c937b60775ca49bc2e371922300bc68f2 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+11Aug17=======================================================================
+1. Add default systemd service file file
 10Aug17=======================================================================
 1. check for disconnecting flag in more places
 31Jul17=======================================================================
diff --git a/dxspider.service b/dxspider.service
new file mode 100644 (file)
index 0000000..bb81d0e
--- /dev/null
@@ -0,0 +1,17 @@
+[Unit]
+Description=DXSpider DX Cluster node
+After=network.target auditd.service
+
+[Service]
+EnvironmentFile=-/etc/default/dxspider
+ExecStart=/spider/perl/cluster.pl > /dev/null
+ExecReload=/bin/kill $MAINPID
+KillMode=process
+Restart=always
+User=sysop
+Group=sysop
+
+[Install]
+WantedBy=multi-user.target
+Alias=dxspider.service
+