Summary: | net-p2p/freenet-0.5.2.1-r8 init.d script broken by sudo patch | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Richard Freeman <rich0> |
Component: | Current packages | Assignee: | Gentoo net-p2p team <net-p2p> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | k, m.debruijne, mark, telefrancisco |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Richard Freeman
2004-11-20 05:59:59 UTC
Here's the offending lines in /etc/sudoers that's causing the problem: # Reset environment by default Defaults env_reset # Uncomment to allow people in group wheel to export variables #Defaults:%wheel !env_reset # Allow people in group users to export specific variables # Defaults:%users env_keep=TZ Uncommenting out this line: Defaults:%wheel !env_reset fixes the problem (Commenting out the "Defaults env_reset" works too, but is less safe) I can confirm this problem. and also the fix provided by Salah Coronya. ;) I've solved this problem changing /etc/init.d/freenet line 67 from: nice -n ${FREENET_NICENESS} sudo -u freenet /usr/bin/start-freenet.sh > /var/freenet/freenet.pid to: nice -n ${FREENET_NICENESS} sudo -u freenet /usr/bin/start-freenet.sh "$JAVA" "$JAVA_ARGS" "$CLASSPATH" > /var/freenet/freenet.pid and then leaving /usr/bin/start-freenet.sh as this: -------------- start ---------------- #!/bin/bash # This script is a companion script to the Gentoo freenet init script. # Logs freenet's stdout and stderr for debugging needs. # # Author: Brandon Low <lostlogic@gentoo.org> # JAVA="$1" JAVA_ARGS="$2" export CLASSPATH="$3" ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \ > /var/freenet/freenet.stdout.log 2> /var/freenet/freenet.stderr.log & echo $! --------------------- end --------------------- It works right for me. Take it as a temporary fix but may work right for the future if freenet startup scripts does not change. Woodyst. |