Hello all,<div>I was initially working on this issue : <a href="https://www.redhat.com/archives/spacewalk-list/2011-August/msg00052.html">https://www.redhat.com/archives/spacewalk-list/2011-August/msg00052.html</a></div><div>
osa-dispatcher, on my SW 1.5 with postgresql installation, was complaining that it couldn't connect to jabberd... and then reconnected 10 seconds later.</div><div>Working on it, I found this at the beginning of the script:</div>
<div><div>if [ -x /etc/init.d/oracle ]; then</div><div>   DB_SERVICE="oracle"</div><div>fi</div></div><div><br></div><div>So, spacewalk-service does not start postgresql but only oracle...</div><div>I modified this to also control postgresql.... and as postgresql starts between jabberd and osa-dispatcher, the message doesn't shows up anymore.</div>
<div>Of course, if the db is not local... the message will show up I guess.</div><div><br></div><div>Anyway, here is a patch for spacewalk-service to control postgresql if it is running on localhost.</div><div><div><div><br>
</div><div>--- /root/spacewalk-service.orig        2011-11-03 07:26:36.235829360 +0000</div><div>+++ /usr/sbin/spacewalk-service 2011-11-03 07:39:39.465795746 +0000</div><div>@@ -22,6 +22,8 @@</div><div><br></div><div> if [ -x /etc/init.d/oracle ]; then</div>
<div>    DB_SERVICE="oracle"</div><div>+elif [ -x /etc/init.d/postgresql ]; then</div><div>+   DB_SERVICE="postgresql"</div><div> fi</div><div><br></div><div> if [ -x /etc/init.d/tomcat5 ]; then</div></div>
</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Pierre</div>