Sametime: Unix Linux Startup Script: Difference between revisions
(New page: This Script is for Sametime 8.5 * Meeting Server * Proxy Server * Media Server * Solution Console for Community/Classic Meeting you can use script from NashCon [http://www.nashcom.de/nsh...) |
No edit summary |
||
| Line 27: | Line 27: | ||
# Default-Start: 3 5 | # Default-Start: 3 5 | ||
# Default-Stop: 0 1 2 6 | # Default-Stop: 0 1 2 6 | ||
# Short-Description: IBM Lotus Sametime Unix Script version | # Short-Description: IBM Lotus Sametime Unix Script version 20100511.01 | ||
# 2010 by Enio Basso ( http://ebasso.net ) | # 2010 by Enio Basso ( http://ebasso.net ) | ||
### END INIT INFO | ### END INIT INFO | ||
| Line 36: | Line 36: | ||
USERNAME=wasadmin | USERNAME=wasadmin | ||
PASSWORD=passwd | PASSWORD=passwd | ||
SAMETIME_HOME_SSC=$SAMETIME_HOME | |||
SAMETIME_HOME_PROXY=$SAMETIME_HOME | |||
SAMETIME_HOME_MEETING=$SAMETIME_HOME | |||
SAMETIME_HOME_MEDIA=$SAMETIME_HOME | |||
PROXY_DM_PROFILE=stproxyProxyDMProfile1 | PROXY_DM_PROFILE=stproxyProxyDMProfile1 | ||
| Line 47: | Line 52: | ||
start) | start) | ||
# Sametime Deployment manager | # Sametime Deployment manager | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_SSC/STSCDMgrProfile" ] ; then | ||
echo -n "Starting Deployment Manager: " | echo -n "Starting Deployment Manager: " | ||
$ | $SAMETIME_HOME_SSC/STSCDMgrProfile/bin/startManager.sh | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime System Console Server | # Sametime System Console Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_SSC/STSCAppProfile" ] ; then | ||
echo -n "Starting Console Server NodeAgent: " | echo -n "Starting Console Server NodeAgent: " | ||
$ | $SAMETIME_HOME_SSC/STSCAppProfile/bin/startNode.sh | ||
echo "OK" | echo "OK" | ||
echo -n "Starting Console Server: " | echo -n "Starting Console Server: " | ||
$ | $SAMETIME_HOME_SSC/STSCAppProfile/bin/startServer.sh STConsoleServer | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime PROXY Server | # Sametime PROXY Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE" ] ; then | ||
echo -n "Starting PROXY Server Manager: " | echo -n "Starting PROXY Server Manager: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE/bin/startManager.sh | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE" ] ; then | ||
echo -n "Starting PROXY Server NodeAgent: " | echo -n "Starting PROXY Server NodeAgent: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/startNode.sh | ||
echo "OK" | echo "OK" | ||
echo -n "Starting PROXY Server: " | echo -n "Starting PROXY Server: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/startServer.sh STProxyServer | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime MEETING Server | # Sametime MEETING Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE" ] ; then | ||
echo -n "Starting MEETING Server Manager: " | echo -n "Starting MEETING Server Manager: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE/bin/startManager.sh | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE" ] ; then | ||
echo -n "Starting MEETING Server NodeAgent: " | echo -n "Starting MEETING Server NodeAgent: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startNode.sh | ||
echo "OK" | echo "OK" | ||
echo -n "Starting MEETING Server: " | echo -n "Starting MEETING Server: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startServer.sh STMeetingServer | ||
echo "OK" | echo "OK" | ||
echo -n "Starting MEETING HttpProxy: " | echo -n "Starting MEETING HttpProxy: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startServer.sh STMeetingHttpProxy | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime MEDIA Server | # Sametime MEDIA Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE" ] ; then | ||
echo -n "Starting MEDIA Server Manager: " | echo -n "Starting MEDIA Server Manager: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE/bin/startManager.sh | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE" ] ; then | ||
echo -n "Starting MEDIA Server NodeAgent: " | echo -n "Starting MEDIA Server NodeAgent: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/startNode.sh | ||
echo "OK" | echo "OK" | ||
echo -n "Starting | echo -n "Starting MEDIA Server: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/startServer.sh STMediaServer | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
| Line 126: | Line 131: | ||
# Sametime MEDIA Server | # Sametime MEDIA Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE" ] ; then | ||
echo -n "Stopping MEDIA Server: " | echo -n "Stopping MEDIA Server: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/stopServer.sh STMediaServer -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
echo -n "Stopping MEDIA Server NodeAgent: " | echo -n "Stopping MEDIA Server NodeAgent: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE" ] ; then | ||
echo -n "Stopping MEDIA Server Manager: " | echo -n "Stopping MEDIA Server Manager: " | ||
$ | $SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime MEETING Server | # Sametime MEETING Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE" ] ; then | ||
echo -n "Stopping MEETING HttpProxy: " | echo -n "Stopping MEETING HttpProxy: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopServer.sh STMeetingHttpProxy -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
echo -n "Stopping MEETING Server: " | echo -n "Stopping MEETING Server: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopServer.sh STMeetingServer -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
echo -n "Stopping MEETING Server NodeAgent: " | echo -n "Stopping MEETING Server NodeAgent: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE" ] ; then | ||
echo -n "Stopping MEETING Server Manager: " | echo -n "Stopping MEETING Server Manager: " | ||
$ | $SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime PROXY Server | # Sametime PROXY Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE" ] ; then | ||
echo -n "Stopping PROXY Server: " | echo -n "Stopping PROXY Server: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/stopServer.sh STProxyServer -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
echo -n "Stopping PROXY Server NodeAgent: " | echo -n "Stopping PROXY Server NodeAgent: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE" ] ; then | ||
echo -n "Stopping PROXY Server Manager: " | echo -n "Stopping PROXY Server Manager: " | ||
$ | $SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime System Console Server | # Sametime System Console Server | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_SSC/STSCAppProfile" ] ; then | ||
echo -n "Stopping Console Server: " | echo -n "Stopping Console Server: " | ||
$ | $SAMETIME_HOME_SSC/STSCAppProfile/bin/stopServer.sh STConsoleServer -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
echo -n "Stopping Console Server NodeAgent: " | echo -n "Stopping Console Server NodeAgent: " | ||
$ | $SAMETIME_HOME_SSC/STSCAppProfile/bin/stopNode.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
# Sametime Deployment manager | # Sametime Deployment manager | ||
if [ -d "$ | if [ -d "$SAMETIME_HOME_SSC/STSCDMgrProfile" ] ; then | ||
echo -n "Stopping Deployment Manager: " | echo -n "Stopping Deployment Manager: " | ||
$ | $SAMETIME_HOME_SSC/STSCDMgrProfile/bin/stopManager.sh -username $USERNAME -password $PASSWORD | ||
echo "OK" | echo "OK" | ||
fi | fi | ||
Revision as of 20:34, 11 May 2010
This Script is for Sametime 8.5
- Meeting Server
- Proxy Server
- Media Server
- Solution Console
for Community/Classic Meeting you can use script from NashCon Domino for Unix/Linux Start-Script
You can use if you install Sametime 8.5 in a single box or on multiple box.
- Create a file /etc/init.d/rc_sametime and put the text below and save
- run > chkconfig --add /etc/init.d/rc_sametime
You must check your installation path and profiles names
#! /bin/sh ######################################################################## # chkconfig: 345 99 15 # description: IBM Lotus Sametime 8.5 ### 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 Unix Script version 20100511.01 # 2010 by Enio Basso ( http://ebasso.net ) ### END INIT INFO ######################################################################## SAMETIME_HOME=/opt/IBM/WebSphere/AppServer/profiles USERNAME=wasadmin PASSWORD=passwd
SAMETIME_HOME_SSC=$SAMETIME_HOME
SAMETIME_HOME_PROXY=$SAMETIME_HOME
SAMETIME_HOME_MEETING=$SAMETIME_HOME
SAMETIME_HOME_MEDIA=$SAMETIME_HOME
PROXY_DM_PROFILE=stproxyProxyDMProfile1
PROXY_PN_PROFILE=stproxyProxyPNProfile1
MEETING_DM_PROFILE=stmeetMeetingDMProfile1
MEETING_PN_PROFILE=stmeetMeetingPNProfile1
MEDIA_DM_PROFILE=stavMediaDMProfile1
MEDIA_PN_PROFILE=stavMediaPNProfile1
case "$1" in
start)
# Sametime Deployment manager
if [ -d "$SAMETIME_HOME_SSC/STSCDMgrProfile" ] ; then
echo -n "Starting Deployment Manager: "
$SAMETIME_HOME_SSC/STSCDMgrProfile/bin/startManager.sh
echo "OK"
fi
# Sametime System Console Server
if [ -d "$SAMETIME_HOME_SSC/STSCAppProfile" ] ; then
echo -n "Starting Console Server NodeAgent: "
$SAMETIME_HOME_SSC/STSCAppProfile/bin/startNode.sh
echo "OK"
echo -n "Starting Console Server: "
$SAMETIME_HOME_SSC/STSCAppProfile/bin/startServer.sh STConsoleServer
echo "OK"
fi
# Sametime PROXY Server
if [ -d "$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE" ] ; then
echo -n "Starting PROXY Server Manager: "
$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE/bin/startManager.sh
echo "OK"
fi
if [ -d "$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE" ] ; then
echo -n "Starting PROXY Server NodeAgent: "
$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/startNode.sh
echo "OK"
echo -n "Starting PROXY Server: "
$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/startServer.sh STProxyServer
echo "OK"
fi
# Sametime MEETING Server
if [ -d "$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE" ] ; then
echo -n "Starting MEETING Server Manager: "
$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE/bin/startManager.sh
echo "OK"
fi
if [ -d "$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE" ] ; then
echo -n "Starting MEETING Server NodeAgent: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startNode.sh
echo "OK"
echo -n "Starting MEETING Server: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startServer.sh STMeetingServer
echo "OK"
echo -n "Starting MEETING HttpProxy: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/startServer.sh STMeetingHttpProxy
echo "OK"
fi
# Sametime MEDIA Server
if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE" ] ; then
echo -n "Starting MEDIA Server Manager: "
$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE/bin/startManager.sh
echo "OK"
fi
if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE" ] ; then
echo -n "Starting MEDIA Server NodeAgent: "
$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/startNode.sh
echo "OK"
echo -n "Starting MEDIA Server: "
$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/startServer.sh STMediaServer
echo "OK"
fi
;;
stop)
# Sametime MEDIA Server
if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE" ] ; then
echo -n "Stopping MEDIA Server: "
$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/stopServer.sh STMediaServer -username $USERNAME -password $PASSWORD
echo "OK"
echo -n "Stopping MEDIA Server NodeAgent: "
$SAMETIME_HOME_MEDIA/$MEDIA_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
if [ -d "$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE" ] ; then
echo -n "Stopping MEDIA Server Manager: "
$SAMETIME_HOME_MEDIA/$MEDIA_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
# Sametime MEETING Server
if [ -d "$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE" ] ; then
echo -n "Stopping MEETING HttpProxy: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopServer.sh STMeetingHttpProxy -username $USERNAME -password $PASSWORD
echo "OK"
echo -n "Stopping MEETING Server: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopServer.sh STMeetingServer -username $USERNAME -password $PASSWORD
echo "OK"
echo -n "Stopping MEETING Server NodeAgent: "
$SAMETIME_HOME_MEETING/$MEETING_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
if [ -d "$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE" ] ; then
echo -n "Stopping MEETING Server Manager: "
$SAMETIME_HOME_MEETING/$MEETING_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
# Sametime PROXY Server
if [ -d "$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE" ] ; then
echo -n "Stopping PROXY Server: "
$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/stopServer.sh STProxyServer -username $USERNAME -password $PASSWORD
echo "OK"
echo -n "Stopping PROXY Server NodeAgent: "
$SAMETIME_HOME_PROXY/$PROXY_PN_PROFILE/bin/stopNode.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
if [ -d "$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE" ] ; then
echo -n "Stopping PROXY Server Manager: "
$SAMETIME_HOME_PROXY/$PROXY_DM_PROFILE/bin/stopManager.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
# Sametime System Console Server
if [ -d "$SAMETIME_HOME_SSC/STSCAppProfile" ] ; then
echo -n "Stopping Console Server: "
$SAMETIME_HOME_SSC/STSCAppProfile/bin/stopServer.sh STConsoleServer -username $USERNAME -password $PASSWORD
echo "OK"
echo -n "Stopping Console Server NodeAgent: "
$SAMETIME_HOME_SSC/STSCAppProfile/bin/stopNode.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
# Sametime Deployment manager
if [ -d "$SAMETIME_HOME_SSC/STSCDMgrProfile" ] ; then
echo -n "Stopping Deployment Manager: "
$SAMETIME_HOME_SSC/STSCDMgrProfile/bin/stopManager.sh -username $USERNAME -password $PASSWORD
echo "OK"
fi
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart|reload"
exit 1
esac
exit 0