Solaris init.d scripts for INN

Katsuhiro Kondou kondou at nec.co.jp
Sun Apr 8 22:10:24 UTC 2001


In article <Pine.LNX.4.30.0104061707500.24616-201000 at pcmy.sei.cmu.edu>,
	James Ralston <qralston+ml.inn-workers at andrew.cmu.edu> wrote;

} 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:

Why don't you use rc.news?

case ${1} in

'start')
        # Start the INN daemon
        if [ -x /news/bin/rc.news ]; then
                echo "starting InterNetNews"
                su - news -c /news/bin/rc.news
        fi
        ;;
'stop')
        # Stop the INN daemon
        if [ -x /news/bin/rc.news ]; then
                su - news -c /news/bin/rc.news stop
        fi
        ;;
esac

should work for it.  Mine has it in /etc/rc2.d/S99news and
/etc/rc0.d/K00news.
-- 
Katsuhiro Kondou


More information about the inn-workers mailing list