(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) System Administration :
How do I get inn to start on UnixWare 7/OpenServer 6?
You need the following script as a rc3.d file. For example I use this as S99news.

--------------Start of S99news---------------------
#!/bin/sh
# news start deamon start/stop script.
# Usually this is put in /etc/init.d (at least on machines SYSV R4
# based systems) and linked to /etc/rc3.d/S99news. When this is done
# the news server will be started when the machine is started.

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/ccs/lib:/usr/local/lib:/usr/local/mysql/lib/mysql:
export LD_LIBRARY_PATH
PATH=/sbin:/usr/bin:/usr/sbin:/bin
basedir=/usr/local/news
bindir=/usr/local/news/bin
export PATH
mode=$1
# Safeguard (relative paths, core dumps..)
cd $basedir
case "$mode" in

  'start')
    # Start deamon
    if test -x $bindir/rc.news
    then
      # -l means start with log.
         /bin/su news -c "$bindir/rc.news --user=news -l &"
    else
      echo "Can't execute $bindir/rc.news"
    fi
    ;;

  'stop')
    # Stop deamon
    $bindir/rc.news stop
    ;;
*) # usage echo "usage: $0 start|stop" exit 1 ;;
esac
--------------__End of S99news---------------------
gerberb@zenez.com
[Append to This Answer]
Previous: (Answer) How do I check which PTF patches are installed?
Next: (Answer) How do I list or remove all Ghost Addresses?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=268
[Search] [Appearance]
This is a Faq-O-Matic 2.721.