<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 26/07/17 17:42, Ed Tump via
Dxspider-support wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CY4PR04MB10498405480416A4FBAF38A5BAB90@CY4PR04MB1049.namprd04.prod.outlook.com"><span
style="color:windowtext">Running… Ubuntu 16.04.2 LTS</span></blockquote>
<br>
<tt>I created a file called /etc/systemd/system/dxspider.service</tt>
containing this:<br>
<br>
<tt>[Unit]</tt><tt><br>
</tt><tt>Description=DXSpider DX Cluster node</tt><tt><br>
</tt><tt>After=network.target auditd.service</tt><tt><br>
</tt><tt><br>
</tt><tt>[Service]</tt><tt><br>
</tt><tt>EnvironmentFile=-/etc/default/dxspider</tt><tt><br>
</tt><tt>ExecStart=/spider/perl/cluster.pl > /dev/null</tt><tt><br>
</tt><tt>ExecReload=/bin/kill -HUP $MAINPID</tt><tt><br>
</tt><tt>KillMode=process</tt><tt><br>
</tt><tt>Restart=on-failure</tt><tt><br>
</tt><tt>RestartPreventExitStatus=255</tt><tt><br>
</tt><tt>User=djk</tt><tt><br>
</tt><tt>Group=spider</tt><tt><br>
</tt><tt><br>
</tt><tt>[Install]</tt><tt><br>
</tt><tt>WantedBy=multi-user.target</tt><tt><br>
</tt><tt>Alias=dxspider.service</tt><br>
<br>
<br>
I believe one then does something like:<br>
<br>
<tt>systemctl enable dxspider</tt><br>
<br>
then <br>
<br>
<tt>systemctl start dxspider</tt><br>
<br>
(or "<tt>service dxspider start</tt>")<br>
<br>
Before anyone asks there is no "/etc/default/dxspider". I can't
remember whether it's relevant nor whether that line is actually
necessary.<br>
<br>
Dirk G1TLH<br>
</body>
</html>