[Dxspider-support] Two Spider nodes on the same linux box

Luigi Carlotto ik5zuk at tiscali.it
Tue Jan 15 21:11:14 GMT 2008


> * copy the line:
>
> sp:2345:respawn:su -c "perl /spider/perl/cluster.pl > /dev/null 2>&1" 
> sysop
>
> and change that second (new) line to
>
> sq:2345:respawn:su -c "DXSPIDER_ROOT=/home/sysop2/spider perl
> $DXSPIDER_ROOT/perl/cluster.pl > /dev/null 2>&1" sysop2
>
> so that you now have *two* lines where there was one.

Dirk,
I would like to to redirect the output onto the tty8 (instead of /dev/null), 
so that I can see the data flow on the monitor...
Here is what I have on my inittab file:

##Start DXSpider on bootup and respawn it should it crash
DX:35:respawn:/bin/su -c "/usr/bin/perl -w /spider/perl/cluster.pl" sysop > 
/dev/tty9
SP:35:respawn:/bin/su -c "DXSPIDER_ROOT=/home/sysop2/spider /usr/bin/perl -w 
$DXSPIDER_ROOT/perl/cluster.pl" sysop2 > /dev/tty8

The second line is referred to the "original" spider node, and the last of 
course to the new node.

After "telinit q", the second cluster doesn't starts automatically... if I 
try to do it manually, with ./cluster.pl, it works properly, but no way with 
the inittab !

Please, could you suggest me something ?!?

TIA, 73's de Luigi, ik5zuk 




More information about the Dxspider-support mailing list