Tonis Kevvai wrote:
>
> Hi,
>
> I'm running two copies of dnews on one server
> each one with his own conf file, own spool and ip.
>
> First one runs on the default /etc/dnews.conf
> Second with parameter ./dnews /etc/dnews2.conf
>
> Now problem is in that, that the second
> daemon runs in root rights.
>
> And tellnews by default connects ti the
> first daemon on the default ip of the server.
>
> How can i run tellnews on second daemon witch
> uses a different ip on that server?
Use the method outlined in the attached text. Let us know if you have
any questions...
-------------------------------------------------------------------------------------
> > >I've tried running two coppies of DNews on the same machine and you can
> > >get it to work provided they
> > >listen on different ports. So the answer is still no if you need them
> > >to both run on port 119 :-(.
> > >If you can settle for it running on different ports then you can do the
> > >following.
> > >Install the first copy of DNews using ./dnews_setup
> > >At the end of the setup process when it asks you if you want to start
> > >DNews say no.
> > >
> > >Then do this...
> > >
> > >cp /etc/dnews.conf /etc/dnews2.conf
> > >cp -R /var/spool/dnews /var/spool/dnews2 (assuming /var/spool/dnews is
> > >where the dnews spool, xover, hist and workarea directories are
> > >installed)
> > >cp -R /usr/local/dnews /usr/local/dnews2
> > >
> > >- Check all files are set owned by the news user.
> > >
> > >chown -R news /var/spool/dnews2
> > >chown -R news /usr/local/dnews2
> > >
> > >- Edit /etc/dnews2.conf
> > >- Change all references to /var/spool/dnews to /var/spool/dnews2
> > >- Change all references to /usr/local/dnews to /usr/local/dnews2
> > >- Add a port setting to specify the port that the second copy of DNews
> > >should be run on.
> > >e.g.
> > >port 1119
> > >
> > >
> > >
> > >- Edit /usr/local/dnews2/dnews_start.sh so it looks like this...
> > >--------------------------------------------------
> > >#!/bin/sh
> > >cd /usr/local/dnews2
> > >ls -ald /usr/local/dnews2
> > >chown -R news /usr/local/dnews2
> > >chown -R news /var/spool/dnews2
> > >chown news /etc/dnews2.conf
> > >
> > >ulimit -c 100000
> > >ulimit -d unlimited
> > >ulimit -s 9000
> > >./dmgrsvc
> > >./dnews_start -conf /etc/dnews2.conf
> > >--------------------------------------------------
> > >
> > >Then provided you've got all the configuration files setup correctly
> > >you should be able to start both servers...
> > >
> > >/usr/local/dnews/dnews_start.sh
> > >/usr/local/dnews2/dnews_start.sh
> > >
> > >Then you can issue to tellnews commands to the different servers
> > >thusly...
> > >
> > >e.g.
> > >tellnews -c /etc/dnews.conf status (equivalent to just issuing
> > >tellnews status)
> > >tellnews -c /etc/dnews2.conf status (need to use this to talk to the
> > >second copy of DNews.
> > >
> > >You should also specify another port for dmgrsvc on the second DNews
> > >server using...
> > >
> > >dmgrsvc_port 7120
> > >
--
Regards,
Brian
--------------------------------------------------------------
Note: If you are using Dnewsweb version prior to 5.4f3 we recommend
you upgrade due to a potential security issue found in those versions.
Customer Support (private) -- [EMAIL PROTECTED]
Mailing list Support (public) -- [EMAIL PROTECTED]
Online Manual -- http://netwinsite.com/dnews/manual.htm
Netwinsite search engine -- http://www.netwinsite.com/find.htm
Online FAQ -- http://netwinsite.com/dnews/faq.htm
Mailing list archive --
http://www.netwinsite.com/cgi/dnewsweb.cgi?cmd=xover&group=netwin.dnews
ftp://ftp.netwinsite.com/pub/netwinsite
Note: To UNSUBSCRIBE from the dnews mailing list send
to [EMAIL PROTECTED] a message with the body
containing one line, unsubscribe
To post to the mailing list send to [EMAIL PROTECTED]