Archive for December, 2011

Sametime standard server start/stop script on Gentoo linux

2011/12/19

Soon it is christmas and I hope to get some time to do a more automated install script for Lotus Notes on Ubuntu/Linux Mint etc. But in the meantime I have this which is a start/stop script for Sametime WebSphere servers on a Gentoo machine. This server hosts everything except the Sametime Community server. Everything works very well on a Gentoo 32bit server. I hade some trouble with installing DB2 and I had to manually create user db2admin, otherwise it works pretty well. Tell me about you experience installing Sametime WebSphere servers on Linux, I like to gather and publish information about this.

 

meetings ~ # cat /etc/init.d/sametime
#!/sbin/runscript

depend() {
         need net
}

start() {
        ebegin “Starting Sametime”
        su – db2admin -c “source ./sqllib/db2profile ; /home/db2admin/sqllib/adm/db2start”
        /opt/IBM/WebSphere/AppServer/profiles/STSCDMgrProfile/bin/startServer.sh dmgr
        /opt/IBM/WebSphere/AppServer/profiles/STSCAppProfile/bin/startServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/STSCAppProfile/bin/startServer.sh STConsoleServer
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMSPNProfile1/bin/startServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMSPNProfile1/bin/startServer.sh STMediaServer
        /opt/IBM/WebSphere/AppServer/profiles/webchatSTPPNProfile1/bin/startServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/webchatSTPPNProfile1/bin/startServer.sh STProxyServer
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/startServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/startServer.sh STMeetingServer
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/startServer.sh STMeetingHttpProxy
        eend $?
}

stop() {
        ebegin “Stopping Sametime”
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMSPNProfile1/bin/stopServer.sh STMediaServer
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMSPNProfile1/bin/stopServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/stopServer.sh STMeetingServer
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/stopServer.sh STMeetingHttpProxy
        /opt/IBM/WebSphere/AppServer/profiles/meetingsSTMPNProfile1/bin/stopServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/webchatSTPPNProfile1/bin/stopServer.sh STProxyServer
        /opt/IBM/WebSphere/AppServer/profiles/webchatSTPPNProfile1/bin/stopServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/STSCAppProfile/bin/stopServer.sh STConsoleServer
        /opt/IBM/WebSphere/AppServer/profiles/STSCAppProfile/bin/stopServer.sh nodeagent
        /opt/IBM/WebSphere/AppServer/profiles/STSCDMgrProfile/bin/stopServer.sh dmgr
        su – db2admin -c “source ./sqllib/db2profile ; /home/db2admin/sqllib/adm/db2stop”
        eend $?
}

meetings ~ # rc-update add sametime