Article View: news.software.nntp
Article #81436Re: FreeBSD problems...
From: Julien ÉLIE
Date: Sun, 21 Jun 2009 08:04
Date: Sun, 21 Jun 2009 08:04
68 lines
2712 bytes
2712 bytes
Hi Grant,
> If I stop INN and use the following command to start it everything starts up and runs just fine.
>
> su news -c /usr/local/news/bin/rc.news start
That's the command you should use.
> Currently as things are starting incorrectly I'm unable to use ctlinnd. The only way to make ctlinnd work is to stop INN and
> restart it with the above command.
>
> Does any one have any suggestions?
There is a script in your FreeBSD port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/news/inn/
It does:
su -fm news -c "/usr/local/news/bin/rc.news start"
#!/bin/sh
#
# PROVIDE: innd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# $FreeBSD: ports/news/inn/files/innd.sh.in,v 1.2 2006/10/31 02:35:51 shaun Exp $
#
. %%RC_SUBR%%
name=innd
PREFIX=%%PREFIX%%
innd_enable=${innd_enable-"NO"}
innd_user=${innd_user-"news"}
innd_group=${innd_group-"news"}
required_files="%%DBDIR%%/history.dir"
load_rc_config ${name}
start_cmd=${name}_start
stop_cmd=${name}_stop
rcvar=`set_rcvar`
command=%%NEWSBASE%%/bin/rc.news
innd_start() {
su -fm ${innd_user} -c "${command} start"
}
innd_stop() {
su -fm ${innd_user} -c "${command} stop"
}
load_rc_config ${name}
run_rc_command "$1"
--
Julien ÉLIE
« Quand tu auras lu ces lignes, le papyrus s'autodétruira. » (Astérix)
Technical Details
Message-ID:
<h1kpiu$kmu$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<h1knc4$ap9$1@tncsrv01.tnetconsulting.net>Show Full Headers
Complete Article Headers
Message-ID: <h1kpiu$kmu$1@news.trigofacile.com> Subject: Re: FreeBSD problems... Date: Sun, 21 Jun 2009 10:04:34 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <h1knc4$ap9$1@tncsrv01.tnetconsulting.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 68 NNTP-Posting-Host: aaubervilliers-151-1-32-82.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1245571486 21214 83.112.23.82 (21 Jun 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 21 Jun 2009 08:04:46 +0000 (UTC) In-Reply-To: <h1knc4$ap9$1@tncsrv01.tnetconsulting.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049