Autor Thema: Sametime 8.5 - Start/Stop Script f. LINUX  (Gelesen 2785 mal)

Offline eknori

  • @Notes Preisträger
  • Moderator
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 11.730
  • Geschlecht: Männlich
Sametime 8.5 - Start/Stop Script f. LINUX
« am: 19.04.10 - 14:06:15 »
Hier als Vorlage einmal ein Startscript für Sametime 8.5 unter Linux

Code
#! /bin/sh
########################################################################
# chkconfig: 345 66 19
# description: IBM Lotus Sametime

### BEGIN INIT INFO
# Provides: rc_sametime
# Required-Start: $remote_fs $syslog$network
# Required-Stop:  $remote_fs $syslog
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Short-Description: IBM Lotus Sametime
# Description:      IBM Lotus Sametime
# 2010 Copyright by Ulrich Krause ( http://www.eknori.de )

### END INIT INFO

########################################################################

SAMETIME_HOME=/sametime/IBM/WebSphere/AppServer/profiles
WAS_USER=YourAdminHere
WAS_PWD=YourPasswordHere

case "$1" in
        start)
# Sametime Deployment manager
                echo -n "Starting Deployment Manager: "
   		$SAMETIME_HOME/STSCDMgrProfile/bin/startManager.sh
		echo "OK"

# Sametime System Console Server
                echo -n "Starting Console Server NodeAgent: "
   		$SAMETIME_HOME/STSCAppProfile/bin/startNode.sh
                echo "OK"

                echo -n "Starting Console Server: "
   		$SAMETIME_HOME/STSCAppProfile/bin/startServer.sh STConsoleServer
                echo "OK"

# Sametime PROXY Server
                echo -n "Starting PROXY Server Manager: "
   		$SAMETIME_HOME/stproxyProxyDMProfile1/bin/startManager.sh
		echo "OK"

                echo -n "Starting PROXY Server NodeAgent: "
   		$SAMETIME_HOME/stproxyProxyPNProfile1/bin/startNode.sh
                echo "OK"

                echo -n "Starting PROXY Server: "
   		$SAMETIME_HOME/stproxyProxyPNProfile1/bin/startServer.sh STProxyServer
                echo "OK"

# Sametime MEETING Server
                echo -n "Starting MEETING Server Manager: "
   		$SAMETIME_HOME/stmeetingMeetingDMProfile1/bin/startManager.sh
		echo "OK"

                echo -n "Starting MEETING Server NodeAgent: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/startNode.sh
                echo "OK"

                echo -n "Starting MEETING Server: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/startServer.sh STMeetingServer
                echo "OK"

                echo -n "Starting MEETING HttpProxy: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/startServer.sh STMeetingHttpProxy
                echo "OK"
        ;;
        stop)

# Sametime MEETING Server
                echo -n "Stopping MEETING HttpProxy: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/stopServer.sh STMeetingHttpProxy -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping MEETING Server: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/stopServer.sh STMeetingServer -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping MEETING Server NodeAgent: "
   		$SAMETIME_HOME/stmeetingMeetingPNProfile1/bin/stopNode.sh -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping MEETING Server Manager: "
   		$SAMETIME_HOME/stmeetingMeetingDMProfile1/bin/stopManager.sh -username $WAS_USER -password $WAS_PWD
		echo "OK"

# Sametime PROXY Server
                echo -n "Stopping PROXY Server: "
   		$SAMETIME_HOME/stproxyProxyPNProfile1/bin/stopServer.sh STProxyServer -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping PROXY Server NodeAgent: "
   		$SAMETIME_HOME/stproxyProxyPNProfile1/bin/stopNode.sh -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping PROXY Server Manager: "
   		$SAMETIME_HOME/stproxyProxyDMProfile1/bin/stopManager.sh -username $WAS_USER -password $WAS_PWD
		echo "OK"

# Sametime System Console Server
                echo -n "Stopping Console Server: "
   		$SAMETIME_HOME/STSCAppProfile/bin/stopServer.sh STConsoleServer -username $WAS_USER -password $WAS_PWD
                echo "OK"

                echo -n "Stopping Console Server NodeAgent: "
   		$SAMETIME_HOME/STSCAppProfile/bin/stopNode.sh -username $WAS_USER -password $WAS_PWD
                echo "OK"

# Sametime Deployment manager
                echo -n "Stopping Deployment Manager: "
   		$SAMETIME_HOME/STSCDMgrProfile/bin/stopManager.sh -username $WAS_USER -password $WAS_PWD
		echo "OK"

        ;;
        reload|restart)
                $0 stop
                $0 start
        ;;
        *)
                echo "Usage: $0 start|stop|restart|reload"
        exit 1
esac
exit 0




Egal wie tief man die Messlatte für den menschlichen Verstand auch ansetzt: jeden Tag kommt jemand und marschiert erhobenen Hauptes drunter her!

Offline DigitDani

  • Senior Mitglied
  • ****
  • Beiträge: 466
  • Geschlecht: Männlich
    • panagenda
Re: Sametime 8.5 - Start/Stop Script f. LINUX
« Antwort #1 am: 20.04.10 - 11:08:13 »
Klasse! Danke Ulrich, das werde ich gerne mal ausprobieren.
Viele Grüße
Daniel

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz