* Add libevent-dev to build-depends.
* Update URL to tor in debian/control and debian/copyright.
* Add a snippet to disable epoll in etc/default/tor, commented out.
+ * Add a snippet to set nice level in etc/default/tor.
- -- Peter Palfrader <weasel@debian.org> Thu, 3 Feb 2005 12:20:07 +0100
+ -- Peter Palfrader <weasel@debian.org> Fri, 4 Feb 2005 13:24:47 +0100
tor (0.0.9.4-1) unstable; urgency=low
#
MAX_FILEDESCRIPTORS=4096
+#
+# If tor is seriously hogging your CPU, taking away too much cycles from
+# other system resources, then you can renice tor. See nice(1) for a
+# bit more information. Another way to limit the CPU usage of an Onion
+# Router is to set a lower BandwidthRate, as CPU usage is mostly a function
+# of the amount of traffic flowing through your node. Consult the torrc(5)
+# manual page for more information on setting BandwidthRate.
+#
+# NICE="--nicelevel 5"
+
#
# Sometimes epoll is broken. This happens to be the case on
# at least the maintainer's desktop box running Linux 2.6.11-rc1
WAITFORDAEMON=35
ARGS=""
MAX_FILEDESCRIPTORS=4096
+NICE=""
test -x $DAEMON || exit 0
start-stop-daemon --start --quiet --oknodo \
--chuid debian-tor:debian-tor \
--pidfile $TORPID \
+ $NICE \
--exec $DAEMON -- $ARGS
echo "done."
fi