thanks for the scripts

Gene

>>> [EMAIL PROTECTED] 01/30/04 02:54AM >>>
This script works fine (with SUSE).


#! /bin/sh

BIN=/opt/tivoli/tsm/client/ba/bin/dsmc
test -x $BIN || exit 5
. /etc/rc.status
rc_reset

case "$1" in
    start)
        echo -n "Starting TSM"
        $BIN schedule >>/var/log/adsm.log 2>&1 &
        rc_status -v
        ;;
    stop)
        echo -n "Stopping TSM"
        killproc -TERM $BIN
        rc_status -v
        ;;
    restart)
        $0 stop
        $0 start
        rc_status
        ;;
    reload)
        $0 stop
        $0 start
        rc_status
        ;;
    status)
        echo -n "Checking for dsmc: "
        checkproc $BIN
        rc_status -v
        ;;
    *)
        echo "Usage: $0 {start|stop|status|restart|reload}"
        exit 1
        ;;
esac
rc_exit

--
+++ GMX - die erste Adresse f|r Mail, Message, More +++
Bis 31.1.: TopMail + Digicam f|r nur 29 EUR http://www.gmx.net/topmail

Reply via email to