<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lotushints &#187; java controller</title>
	<atom:link href="http://www.lotushints.com/tag/java-controller/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lotushints.com</link>
	<description>Lotus Notes tips &#38; tricks you always hoped you will not need</description>
	<lastBuildDate>Thu, 29 Dec 2011 09:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Domino Linux startup script</title>
		<link>http://www.lotushints.com/2008/11/domino-linux-startup-script/</link>
		<comments>http://www.lotushints.com/2008/11/domino-linux-startup-script/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 08:00:31 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Basic]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Lotus Domino]]></category>
		<category><![CDATA[java controller]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux script]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=111</guid>
		<description><![CDATA[As mentioned last week, you need to write your own shell script to start and stop domino on system start-up/shutdown. There is a great draft of the script on SearchDomino site. I did some remodelling so that the script would start Notes with Java controller and would fit our system. The code is pasted below. [...]]]></description>
			<content:encoded><![CDATA[<p>As mentioned last week, you need to write your own shell script to start and stop domino on system start-up/shutdown. There is a great draft of the script on <a href="http://searchdomino.techtarget.com/generic/0,295582,sid4_gci1253745,00.html">SearchDomino</a> site. I did some remodelling so that the script would start Notes with Java controller and would fit our system. The code is pasted below.<br />
<span id="more-111"></span></p>
<pre>#!/bin/bash
#
# /etc/init.d/domino
#
### BEGIN INIT INFO
# Provides:          Domino
# Required-Start:    $syslog $remote_fs $network
# Required-Stop:     $syslog $remote_fs $network
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: Domino providing IBM Lotus Domino Server
# Description:       Start Domino to provide an IBM Lotus Domino Server
### END INIT INFO
# 

. /etc/init.d/functions
DATADIR=/opt/ibm/notesdata
RETVAL=0

start() {
	echo -n "Starting Domino Server"
	sudo -u notes /opt/ibm/lotus/bin/server "=$DATADIR/notes.ini" -jc -c &#038;
	RETVAL=$?

	# Remember status and be verbose
	echo
	[ $RETVAL -eq 0 ]
	return $RETVAL
}

stop() {
	echo -n "Shutting down Domino Server"
	sudo -u notes /opt/ibm/lotus/bin/server "=$DATADIR/notes.ini" -q
	RETVAL=$?

	# Remember status and be verbose
	RETVAL=0   # have to force this since since there's no way of really
                        # knowing
	echo
	[ $RETVAL -eq 0 ]
	return $RETVAL
}

restart() {
	# Stop the service and regardless of whether it was running or not,
        # start it again.
	stop
	start
}

case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    *)
 echo "Usage: $0 {start|stop|restart}"
 exit 1
 ;;
esac
exit $RETVAL</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2008/11/domino-linux-startup-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

