I'd like to start Nutch automatically when I reboot. I wrote a real rough
script (see below) that works on my Debian system when the system is up,
but I get nothing on a reboot (and the links are set to the
/etc/init.d/nutch). Any hints, ideas, or suggestions? I checked the FAQ
and the archive but didn't see anything. In addition, it would be great to
get messages going into /var/log to help figure out what is going on but
I've had no luck doing that.
Thanks,
Bill
## Start and stop Nutch. Note how specific it is to
## (i) Tomcat (typically $CATALINA_HOME/bin/shutdown.sh
## or $CATALINA_HOME/bin/startup.sh) and (ii) the
## directory with the most recent fetch results.
## PATH stuff
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
PATH=$PATH:/usr/local/SUNWappserver/bin
CLASSPATH=/usr/local/SUNWappserver/jdk/jre/lib
JAVA_HOME=/usr/local/SUNWappserver/jdk
CATALINA_HOME=/usr/local/jakarta-tomcat-5
JAVA_OPTS="-Xmx1024m -Xms512m"
case "$1" in
start)
cd /home/bgoffe/nc/40 ## start in correct directory
/usr/local/jakarta-tomcat-5/bin/startup.sh
;;
stop)
/usr/local/jakarta-tomcat-5/bin/shutdown.sh
;;
force-reload|restart)
/usr/local/jakarta-tomcat-5/bin/shutdown.sh
cd /home/bgoffe/nc/40
/usr/local/jakarta-tomcat-5/bin/startup.sh
;;
*)
echo "Usage: /etc/init.d/nutch {start|stop|force-reload|restart}"
exit 1
;;
esac
exit 0
--
*------------------------------------------------------*
| Bill Goffe [EMAIL PROTECTED] |
| Department of Economics voice: (315) 312-3444 |
| SUNY Oswego fax: (315) 312-5444 |
| 416 Mahar Hall <http://cook.rfe.org> |
| Oswego, NY 13126 |
*--------*------------------------------------------------------*-----------*
| "It's a scholarly activity that has nothing to do with his professional |
| activity." |
| -- Samuel Landau, the lawyer for Roger Shepherd, who used to be a |
| professor at New School University until he left after admitting he |
| plagiarized part of a book. Landau argues that his book was |
| "totally unrelated" to his university work and he is suing to get |
| his job back. "Professor Who Acknowledged Plagiarism Accuses New |
| School U. of Firing Him Unfairly," Chronicle of Higher Education, |
| November 17, 2004. |
*---------------------------------------------------------------------------*
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general