Article View: news.software.nntp
Article #7978Re: Integrating INN into Solaris startup (repost)
From: Mark Turner
Date: Sun, 26 May 1996 00:00
Date: Sun, 26 May 1996 00:00
45 lines
2739 bytes
2739 bytes
In article <Pine.GSO.3.93.960525104224.20027A-100000@qsihome0.qsi.com>, David M. Gursky <ddg@qsi.com> wrote: > > Now integrating INN into the startup of our old server was easy (primarily > because on SunOS 4.1.x, there is the rc.local script that you can modify > to your hearts content.) Now on Solaris 2, there is ths large collection > of state based rc files, and I have no idea what is the accepted practice > for calling rc.news from this suite of files in /etc. Any insight will be > appreciated. You'll need to create a script called "news" (or something else if you prefer) in /etc/init.d, with links to /etc/rc2.d/S93news and /etc/rc2.d/K93news. The number 93 is what I happen to use but you could choose your own number, the scripts are run in numerical order to allow you to define the order of various things starting and stopping. As the system enters run level 2 the script /etc/rc2.d/S93news will be executed as root with one parameter "start", and as the system leaves run level 2 on the way down that same script will be called but this time with one parameter "stop". At any time you can run "/etc/init.d/news start" or "/etc/init.d/news stop" to start or stop the news system. The script obviously needs to look at the parameter and start or stop the news system according to the parameter. The "start" version could simply run rc.news and the "stop" could simply run "ctlinnd shutdown WHATEVER", but you might want to start or kill off other news-related processes. I would have included the script we use at PIPEX but I'm offline at the moment so can't get at it. Look at other scripts in /etc/init.d for examples. Some people think this method is more fiddly than the old "stick it in rc.local" approach, but I find it much more flexible. One major advantage is that you can simply thow a tar file at a machine to install something without worrying about overwriting or having to amend rc.local. Installing something that needs no machine-specific configuration, such as xntpd, now takes only a few commands and a very small number of seconds. Hope this helps. Cheers, Mark.
Technical Details
Message-ID:
<4o999k$468@clio.kram.org>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:
<Pine.GSO.3.93.960525104224.20027A-100000@qsihome0.qsi.com>Show Full Headers
Complete Article Headers
Message-ID: <4o999k$468@clio.kram.org> Subject: Re: Integrating INN into Solaris startup (repost) Date: Sun, 26 May 1996 00:00:00 +0000 From: mark@kram.org (Mark Turner) References: <Pine.GSO.3.93.960525104224.20027A-100000@qsihome0.qsi.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.mbox.zip!not-for-mail X-Deja-AN: 156802507 Distribution: inet Organization: Kram Newsgroups: news.software.nntp