Solaris init.d scripts for INN

James Ralston qralston+ml.inn-workers at andrew.cmu.edu
Fri Apr 6 21:37:10 UTC 2001


Several people asked me about these, so here are the Solaris init
scripts I wrote for INN.

The scripts go into /etc/init.d.  You have to make the symbolic links
to them:

    $ ln -s ../init.d/cnfsstat /etc/rc0.d/K10cnfsstat
    $ ln -s ../init.d/innwatch /etc/rc0.d/K10innwatch
    $ ln -s ../init.d/inn      /etc/rc0.d/K15inn
    $ ln -s ../init.d/cnfsstat /etc/rc1.d/K10cnfsstat
    $ ln -s ../init.d/innwatch /etc/rc1.d/K10innwatch
    $ ln -s ../init.d/inn      /etc/rc1.d/K15inn
    $ ln -s ../init.d/cnfsstat /etc/rc2.d/K10cnfsstat
    $ ln -s ../init.d/innwatch /etc/rc2.d/K10innwatch
    $ ln -s ../init.d/inn      /etc/rc2.d/K15inn
    $ ln -s ../init.d/cnfsstat /etc/rc3.d/K10cnfsstat
    $ ln -s ../init.d/innwatch /etc/rc3.d/K10innwatch
    $ ln -s ../init.d/inn      /etc/rc3.d/K15inn
    $ ln -s ../init.d/inn      /etc/rc3.d/S80inn
    $ ln -s ../init.d/cnfsstat /etc/rc3.d/S85cnfsstat
    $ ln -s ../init.d/innwatch /etc/rc3.d/S85innwatch

You also need to supply a /etc/defaults/inn file if you want INN to
actually start up.  I've enclosed the one I use.

These scripts try very hard to shut down INN in a graceful manner.
However, innfeed processes have a tendency to linger for several
minutes after INN has closed its pipe to them, and the scripts aren't
smart enough to spinwait until all of them exit.  I intend to fix this
when I rewrite these scripts for Linux, which I plan to do fairly
soon.  I'd also like to remove the dependency on /usr/xpg4/bin/id
(/usr/bin/id on Solaris doesn't support the -u option).

-- 
James Ralston, Information Technology
Software Engineering Institute
Carnegie Mellon University, Pittsburgh, PA, USA


-- Binary/unsupported file stripped by Listar --
-- Type: APPLICATION/x-gzip
-- File: inn-2.3.1-solaris-init.tar.gz
-- Desc: Solaris init scripts for INN 2.3.1


-- Attached file included as plaintext by Listar --
-- File: inn
-- Desc: sample /etc/default/inn file for Solaris INN init.d scripts

# Set to YES if you want in INN system to start.  If INN_START is set
# to any other value (or not set at all), all of the INN init.d
# scripts silently exit.
INN_START=YES

# You *must* explicitly name the path to the innshellvars file.  If
# this is not set, the inn init.d scripts will fail.
INN_SHELL_VARS_FILE=/usr/lib/inn/innshellvars

# The inn init.d scripts will prepend INN_PREPATHS to the PATH, and
# append INN_POSTPATHS to the PATH.  These actions occur *after* the
# innshellvars file rewrites the PATH.  The inn init.d scripts require
# an "id" program that supports the -u option, so you must have the
# SUNWxcu4 package installed, and you must have /usr/xpg4/bin in
# INN_PREPATH.
INN_PREPATHS=/usr/xpg4/bin
INN_POSTPATHS=

# Either leave this unset, or else pick innd or inndstart (the latter
# is recommended).  If unset, inndstart is assumed.
INND_START_PROGRAM=inndstart



More information about the inn-workers mailing list