[Dxspider-support] Autostart

Dirk Koopman djk at tobit.co.uk
Mon Jan 30 12:16:04 GMT 2017


While this works it has one very big downside. It runs the node as root. 
A quick scan through the installation manual will tell you that I 
STRONGLY recommend that you DON'T run the software as root.

Now I am not a raspberian user and I don't know which init system it is 
using (these days), but have you tried using /etc/inittab as per the 
installation instructions? If the file exists already then please use it 
otherwise follow the instructions below (or use the systemd script I 
posted a couple of days ago [if /etc/systemd exists]).

In any case, if you want to start the node in /etc/rc.local then you 
should use the same incantation as the /etc/inittab version. Something like:

su -c '/usr/bin/perl -w /spider/perl/cluster.pl > /dev/null &' sysop

Unfortunately, because you will have been running as root, you will have to:

1. stop the node
2. login or su or sudo -s to root.
3. cd /spider
4. chown -R sysop:sysop .
5. change your /etc/rc,local
6. reboot

* 'sysop' is the (standard) user (in the instructions) that you intend 
to run the node as. You may use any other user if you prefer.

Please (PLEASE) don't run the node as root. The software is not 
warranted to be 100% secure and if someone gets in and breaks 
everything, you get to keep all the pieces (and the fallout).

Dirk G1TLH

On 29/01/17 15:19, Ed via Dxspider-support wrote:
> After I changed the above to this ::
>   /usr/bin/perl -w /spider/perl/cluster.pl  &
>
> It worked. For now this will do what I'm looking for.
>
> Thanks you Kurt and to all the others for their input.
>
> Thanks & 73
>
> Ed W3NR
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support




More information about the Dxspider-support mailing list