Sametime standard server start/stop script on Gentoo linux

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

Advertisements

2 Responses to “Sametime standard server start/stop script on Gentoo linux”

  1. Sametime standard server start/stop script on Gentoo linux « Usable Software’s Backlog « Ray Say What? Says:

    […] rayd123 Uncategorized Leave a comment Sametime standard server start/stop script on Gentoo linux « Usable Software’s Backlog. […]

  2. nazrin Says:

    Hi, Can it works on Redhat or SUSE?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: