Article View: news.software.nntp
Article #44111Re: INN start script on Solaris
From: Jeremy
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
35 lines
1381 bytes
1381 bytes
Russ Allbery <rra@stanford.edu> wrote:
> The correct way to start INN is to run rc.news as the news user.
Why is that, anyway? It seems to work fine if you do it as root.
> This could obviously be enhanced in various ways.
Clean shutdown would be good. I use:
#!/bin/sh
case $1 in
'start')
if [ -f /usr/local/news/bin/rc.news ]; then
su news -c /usr/local/news/bin/rc.news
fi
;;
'stop')
if [ -f /usr/local/news/run/innd.pid ]; then
/usr/local/news/bin/ctlinnd throttle 'system going down'
sleep 1
/usr/local/news/bin/ctlinnd shutdown 'system going down'
fi
;;
*)
echo "usage: /etc/init.d/innd {start|stop}"
;;
esac
--
Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Technical Details
Message-ID:
<950723917.521338@news.netscum.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<38AAB1E7.B756171A@ap.org> <brad-28C8DF.16351716022000@news.skynet.be> <yl1z6d87j3.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <950723917.521338@news.netscum.dk> Subject: Re: INN start script on Solaris Date: Wed, 16 Feb 2000 00:00:00 +0000 From: Jeremy <bofh@netscum.dk> References: <38AAB1E7.B756171A@ap.org> <brad-28C8DF.16351716022000@news.skynet.be> <yl1z6d87j3.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 586606797 Organization: There Is No Organization X-Meow: Meow Newsgroups: news.software.nntp