From: Dirk Koopman Date: Fri, 11 Aug 2017 14:02:13 +0000 (+0100) Subject: add default systemd service (init) file X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6f642282a0dfa2e55b62bd792ebe8b41192356c;p=spider.git add default systemd service (init) file --- diff --git a/Changes b/Changes index d17fa120..1563721c 100644 --- 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 index 00000000..bb81d0e3 --- /dev/null +++ b/dxspider.service @@ -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 +