Networker

Re: [Networker] Help to install LINUX client

2003-12-16 17:32:56
Subject: Re: [Networker] Help to install LINUX client
From: Matt Temple <mht AT RESEARCH.DFCI.HARVARD DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 16 Dec 2003 17:32:52 -0500
Matt Hemingway wrote:
I created it from the rpm file that Legato provides.  I
used alien to do the conversion:

alien -d lgtoclnt-6.x.rpm (for example)

would create a Debian package.  There are some
dependencies that need to be installed first, before you
can isntall the deb package.  I don't remember all of them
off the top of my head, but when you do a dpkg -i on the
deb package, it tells you.  I know libncurses4 is one of
them (it may be the only one).


The startup file isn't right for Debian, either.   I added:

# --- these are Red Hat -- don't use --Source function library.
#. /etc/rc.d/init.d/functions
#
# Source networking configuration.
#. /etc/sysconfig/network



# Check that networking is up.
#[ ${NETWORKING} = "no" ] && exit 0
#
# --- these are redhat -- end
PIDFILE=/var/run/networker.pid
NSRDIR=/usr/sbin
NAME=nsrexecd
DAEMON=$NSRDIR/$NAME
ARGS="-s tapes"
[ -f ${DAEMON} ] || exit 0
 # See how we were called.

case "$1" in
  start)
     # Start daemons.
            echo -n "Starting networker: "  start-stop-daemon --start
--quiet --pidfile $PIDFILE -m --exec ${DAEMON}
                                  ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down networker: "
        start-stop-daemon --stop --quiet --name $NAME --oknodo --exec
${DAEMON}
        rm -f $PIDFILE
        echo
        ;;
  status)
        # look for PID file
        if [ -f $PIDFILE ]; then
                echo  "<$NAME> appears to be running"
        else
                echo  "<$NAME> does NOT appear to be running"


     -
                                                                         fi
        ;;
  *)
        echo "Usage: networker {start|stop}"
        exit 1
esac

--
=============================================================
Matthew Temple                Tel:    617/632-2597
Director, Research Computing  Fax:    617/582-7820
Dana-Farber Cancer Institute  mht AT research.dfci.harvard DOT edu
44 Binney Street,  ML105      http://research.dfci.harvard.edu
Boston, MA 02115              Choice is the Choice!

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=