ok i got it now! Was a darn birth but at least it works "quick n dirty". You
GURUs out there will LAUGH about it! :) but it took a while for me to get
this crap working. All those SHELLS and Levels and PATH Variables which are
never are the same...argh!..confusing me :) SO here my "dirty" solution for
dummies like me and anybody with the same problem:
My System is a SuSE 9.0 Pro Linux. Target is to install and config FREENET the
way that it will start up automaticly at System-Boot time using RUNLEVEL
Scripts.
Things to do:
1. make sure you solve the software requirement f�r the freenet software (e.g.
JAVA JRE)
2. Install FREENET (unpack it somewhere) e.g. "/freenet"
3. edit the included Freenet START-Script and insert these two lines at the
beginning:
~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
export PATH=$PATH:/usr/lib/SunJava2-1.4.2/jre/bin/��������������<<< NEW LINE
TO INSERT!
cd /
freenet�����������������������������������������������������������������������������<<<
NEW LINE TO INSERT!
# Check to see whether we use echo -n or echo "\c" to suppress newlines.
.
.
.
~~~~~~~~~~~~~~~~~~~~~
1st Line will extent the PATH enviroment Variable to inclusde the JAVA
executables. This is why ever, NOT default in the SuSE 9.0 distribution!
2nd Line just changes PWD to freenet home. seems freenet and java needs that
to find anything.
4. create a new RUNLEVEL scriptfile
��������(e.g. 'cp /etc/init.d/skeleton /etc/init.d/freenet)
5. edit this file and make it look like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#! /bin/sh
#
# /etc/init.d/freenet
# � and its installation under /freenet
#
### BEGIN INIT INFO
# Provides: � � � � �freenet
# Required-Start: � �$local_fs $remote_fs $network
# Required-Stop: � � $local_fs $remote_fs $network
# Default-Start: � � 3 5
# Default-Stop: � � �0 1 2 6
# Short-Description: freenetproject.org node/proxy software
### END INIT INFO
case "$1" in
� � start)
� � � � echo -n "Starting freenet "
� � � � sh /freenet/start-freenet.sh
� � � � ;;
� � stop)
� � � � echo -n "Shutting down freenet "
� � � � sh /freenet/stop-freenet.sh
� � � � ;;
� � restart)
� � � � ## Stop the service and regardless of whether it was
� � � � ## running or not, start it again.
� � � � $0 stop
� � � � $0 start
� � � � ;;
� � *)
� � � � echo "Usage: $0 {start|stop|restart}"
� � � � exit 1
� � � � ;;
esac
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6. let "chkconfig" start the script at the default runlevels for network
services 3+5 by entering "chkconfig freenet on"
That should be all to do!
Hope it will work for you too!
greets
Axel
_______________________________________________
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]