Thread View: news.software.nntp
8 messages
8 total messages
Started by Tony Rentschler
Wed, 16 Feb 2000 00:00
INN start script on Solaris
Author: Tony Rentschler
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
15 lines
1070 bytes
1070 bytes
Does the INN 2.2 install generate an innd.sh start script on Solaris 2.6 as it does on FreeBSD? I've looked around in /etc/init.d and /etc/rc*.d, but couldn't find anything like the BSD /usr/local/etc/rc.d/innd.sh. What's the common way to start inn upon reboot on Solaris 2.6? Thanks, Tony --- Tony Rentschler Senior Software Engineer The Associated Press 50 Rockefeller Plaza New York, NY 10020 (212) 621-1985 trentschler@ap.org
Re: INN start script on Solaris
Author: Andrew Gierth
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
15 lines
1338 bytes
1338 bytes
>>>>> "Jeremy" == Jeremy <bofh@netscum.dk> writes: >> The correct way to start INN is to run rc.news as the news user. Jeremy> Why is that, anyway? It seems to work fine if you do it as Jeremy> root. If something is not quite right at startup, e.g. missing active file, then rc.news will screw up the file ownership & permissions if it is running as root. -- Andrew.
Re: INN start script on Solaris
Author: 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 )
Re: INN start script on Solaris
Author: Russ Allbery
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
32 lines
1541 bytes
1541 bytes
Brad Knowles <brad@shub-internet.org> writes:
> Tony Rentschler <trentschler@ap.org> wrote:
>> What's the common way to start inn upon reboot on Solaris 2.6?
> I dunno. Have you tried `ctlinnd start`?
newsfeed:~/etc> ctlinnd start
Usage error (unknown command) -- try -h for help.
The correct way to start INN is to run rc.news as the news user. I
usually just roll a quick little SysV-style init script for my servers.
#!/bin/sh
# /etc/init.d/news -- Starts the news subsystem (by running rc.news).
# $Id: news.init,v 1.0 1999/10/03 16:19:56 eagle Exp $
case $1 in
'start')
su news -c /var/news/bin/rc.news
;;
*)
echo 'usage: /etc/init.d/news start'
;;
esac
This could obviously be enhanced in various ways.
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: INN start script on Solaris
Author: Brad Knowles
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
24 lines
1842 bytes
1842 bytes
In article <38AAB1E7.B756171A@ap.org>, Tony Rentschler
<trentschler@ap.org> wrote:
> Does the INN 2.2 install generate an innd.sh start script on Solaris 2.6
> as it does on FreeBSD? I've looked around in /etc/init.d and /etc/rc*.d,
> but couldn't find anything like the BSD /usr/local/etc/rc.d/innd.sh.
That startup script is totally unique to FreeBSD, and almost
certainly comes from using the FreeBSD port of INN. If you were to take
the "official" INN code from the ISC and compile and install it manually
on your system, it most likely would not create that startup script.
> What's the common way to start inn upon reboot on Solaris 2.6?
I dunno. Have you tried `ctlinnd start`?
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 65? If so, please contact me via private e-mail for details.
Re: INN start script on Solaris
Author: Russ Allbery
Date: Wed, 16 Feb 2000 00:00
Date: Wed, 16 Feb 2000 00:00
20 lines
1423 bytes
1423 bytes
Jeremy <bofh@netscum.dk> writes: > 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. 'cause then innwatch and cnfsstat end up running as root, which is unnecessary (and possibly somewhat more dangerous, as they haven't been run through a security audit that I'm aware of). > Clean shutdown would be good. I use: Yeah, that was the obvious improvement. That's in the human instructions here rather than in the script. :) -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: INN start script on Solaris
Author: Katsuhiro Kondou
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
14 lines
1536 bytes
1536 bytes
In article <88gpu3$nmk$1@pheidippides.axion.bt.co.uk>, Tim Pennick <tpennick@axion.bt.co.uk> wrote; } whether the script should be used to Start or Kill the service. The Start } link for starting INN seems to work OK as the last service to start in rc2.d, } though I'm not sure it wouldn't be better in rc3.d. That depends on wheather inn uses NFS or not. It must sit in rc2.d if the system runs as run level 2 which you can verify it in /etc/inittab. -- Katsuhiro Kondou
Re: INN start script on Solaris
Author: Tim Pennick
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
45 lines
2332 bytes
2332 bytes
>
> From: Jeremy <bofh@netscum.dk>
>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
I struggled a bit to work out the best way to get my version of this script
(almost exactly the same) to run before anything else was shutdown (to kill
it), and after everything else had started up (to start it). In Solaris, you
put the script in /etc/init.d, and put links in /etc/rc*.d (appologies if I'm
teaching my grandmother to suck eggs but I've started so I'll finish). The
names of the links in the rc... directories are significant, and are of the
form Knnn<filename> or Snnn<filename>, where nnn is a number implementing the
order in which the files in the directory should be run, and S, or K, indicate
whether the script should be used to Start or Kill the service. The Start
link for starting INN seems to work OK as the last service to start in rc2.d,
though I'm not sure it wouldn't be better in rc3.d.
When you shutdown or reboot Solaris, it transitions through (or to) run level
0. Therefore I put the Kill link as more or less the first thing to happen in
rc0.d and this seems to do the trick.
Hope this helps
Tim Pennick
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads