<div id=":18v" class="ii gt"><div>
<div>
<pre><div><ol><li>Hi,</li></ol>The below init scripts work fine while running it by hand but does not come up after booting up. I have ran update-rc.d resque defaults on Ubuntu Hardy Server (8.04)<br><br><br>Please suggest/guide.<br>
<ol><li><br></li><li><div>#!/bin/bash</div></li><li><div># Startup script for Resque Server</div><br></li><li><div> </div></li><li><div>start_resque=/usr/local/AddressBook/EntAddressBookDataStore/current/resque_cluster_start.sh</div>
</li><br><li><div>stop_resque=/usr/local/AddressBook/EntAddressBookDataStore/current/resque_cluster_stop.sh</div></li><li><div> </div><br></li><li><div>start() {</div></li><li><div> echo -n "Starting ResqueServer: "</div>
</li><li><div><br> ${start_resque} </div></li><li><div> echo "done."</div></li><li><div>}</div></li><li><br><div>stop() {</div></li><li><div> echo -n "Shutting down ResqueServer: "</div>
</li><li><div><br> ${stop_resque} </div></li><li><div> echo "done."</div></li><li><div>}</div></li><li><br><div> </div></li><li><div># See how we were called</div></li><li><div>case "$1" in</div>
</li><li><br><div> start)</div></li><li><div> start</div></li><li><div> ;;</div></li><li><br><div> stop)</div></li><li><div> stop</div></li><li><div> ;;</div></li><li><br><div> restart)</div>
</li><li><div> stop</div></li><li><div> sleep 10</div></li><li><br><div> start</div></li><li><div> ;;</div></li><li><div> *)</div></li><li><br><div> echo "Usage: $0 {start|stop|restart}"</div>
</li><li><div>esac</div></li></ol></div></pre>
</div>
</div>
</div>