From d6f642282a0dfa2e55b62bd792ebe8b41192356c Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Fri, 11 Aug 2017 15:02:13 +0100 Subject: [PATCH] add default systemd service (init) file --- Changes | 2 ++ dxspider.service | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 dxspider.service 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 + -- 2.43.0