Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28020 - freenet still doesn't start (maybe not because of start-freenet.sh :)
Summary: freenet still doesn't start (maybe not because of start-freenet.sh :)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-05 14:11 UTC by Kasper Souren
Modified: 2003-09-08 15:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kasper Souren 2003-09-05 14:11:50 UTC
Well, anyway, it still doesn't start. And I'm not getting anything in 
freenet.*.log. I start it, but nothing is running. 
 
So something needs to be fixed, I guess. 
What can I do to find out what's wrong?
Comment 1 Richard Freeman gentoo-dev 2003-09-06 05:48:28 UTC
I just merged freenet-0.5.2.1-r5 - since it has been unmasked.  After accepting the revisions to init.d/freenet I am unable to start freenet.  

I did a little tinkering with the init file - it does get down to the command to run start-freenet.sh, and it seems to have a valid $JAVA, JAVA_ARGS, and CLASSPATH.

emerge info:

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,2.2.5-r4, 2.6.0-test4-mm1-rf16)
=================================================================
System uname: 2.6.0-test4-mm1-rf16 i686 Pentium III (Coppermine)
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /opt/zetagrid /var/freenet /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs userpriv usersandbox gpg severe"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga ggi tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr scanner gnome -3dnow alsa samba"
Comment 2 Rick 2003-09-06 15:25:33 UTC
in order to get this to work I had change two things.
***disclaimer***
I'm *no* security expert so this may be bad advice from a security stand point
(so please if someone knows better then me please speak up).

I changed  freenet's /etc/password line from
freenet:x:1001:407:freenet:/var/empty:/dev/null
to
freenet:x:1001:407:freenet:/var/freenet:/bin/bash

and in the /etc/init.d/freenet file I changed the run line from 
nice -n ${FREENET_NICENESS} su freenet -- /usr/bin/start-freenet.sh > /var/freenet/freenet.pid

to

nice -n ${FREENET_NICENESS} su freenet -c "/usr/bin/start-freenet.sh > /var/freenet/freenet.pid"

loks like a typo on the -c  option I think.

I couldn't get freenet to run under the user id "freenet" without giving that user id  an actual shell in /etc/password it seemed to me the othe other deamons that run 
under a different user ids have a main process that runs as "root" which spawn subprocesses that run under the "none shelled" user ids.  freenet doesn't seem to be designed to run in this way, so running as root may be better.  I don't know.  If your security knowledgable please fill us in.
Comment 3 Todd Berman (RETIRED) gentoo-dev 2003-09-08 11:33:52 UTC
I know this isnt the proper forum for this, but M.deBruijne@HCCNet.nl, do you happen to be a Mark who lived in North Carolina at one point?
Comment 4 Michiel de Bruijne 2003-09-08 12:27:43 UTC
Nope, I'm Michiel de Bruijne and I have lived all my life in the Netherlands. 
Comment 5 Brandon Low (RETIRED) gentoo-dev 2003-09-08 15:13:59 UTC
Thanks, should be fixed in -r6, using sudo instead of su seems to make it better.  Thanks to Kasper for all the help!