<?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; linux script</title>
	<atom:link href="http://www.lotushints.com/tag/linux-script/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 &#8211; Addon</title>
		<link>http://www.lotushints.com/2008/12/domino-linux-startup-script-addon/</link>
		<comments>http://www.lotushints.com/2008/12/domino-linux-startup-script-addon/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 08:00:12 +0000</pubDate>
		<dc:creator>Vladimir Kocjancic</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Lotus Domino]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux script]]></category>

		<guid isPermaLink="false">http://www.lotushints.com/?p=144</guid>
		<description><![CDATA[An error has come to my attention. Linux startup script for domino does not work by default. Instead it returns an error in a form of: &#8220;tty is disabled during system start up&#8221;. What you can do, if you have sufficient rights (otherwise, ask your admin to do it), is to add the following line [...]]]></description>
			<content:encoded><![CDATA[<p>An error has come to my attention. <a href="/2008/11/domino-linux-startup-scriptdomino-linux-startup-script/">Linux startup script for domino</a> does not work by default. Instead it returns an error in a form of: &#8220;tty is disabled during system start up&#8221;.</p>
<p>What you can do, if you have sufficient rights (otherwise, ask your admin to do it), is to add the following line into sudoers file:</p>
<blockquote><p>Defaults:your_notes_user !requiretty</p></blockquote>
<p>Replace your_notes_user with username that can run notes, save it and that is it.</p>
<p>How do you do that?</p>
<ol>
<li>Login to your linux machine</li>
<li>In console type <strong>visudo</strong> and press enter</li>
<li>Edit the file by pressing either <strong>i</strong> or <strong>a</strong> vi command</li>
<li>Go to the end of the file and add above mentioned line</li>
<li>Save the file using <strong>:wq</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.lotushints.com/2008/12/domino-linux-startup-script-addon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

