Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 194328 Details for
Bug 268396
net-misc/tor-0.2.0.34: /etc/security/limits.d/tor.conf is ignored
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Init script which will respect limits.d
tor.initd-r6 (text/plain), 1.58 KB, created by
Christian Faulhammer (RETIRED)
on 2009-06-12 01:09:34 UTC
(
hide
)
Description:
Init script which will respect limits.d
Filename:
MIME Type:
Creator:
Christian Faulhammer (RETIRED)
Created:
2009-06-12 01:09:34 UTC
Size:
1.58 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/tor/files/tor.initd-r6,v 1.1 2009/06/03 13:02:24 fauli Exp $ > >opts="${opts} checkconfig reload" >PIDFILE=/var/run/tor/tor.pid >CONFFILE=/etc/tor/torrc > >depend() { > need net >} > >checkconfig() { > # first check that it exists > if [ ! -f ${CONFFILE} ] ; then > eerror "You need to setup ${CONFFILE} first" > eerror "Example is in ${CONFFILE}.sample" > return 1 > fi > > # now verify whether the configuration is valid > /usr/bin/tor --verify-config --User tor -f ${CONFFILE} > /dev/null 2>&1 > if [ $? -eq 0 ] ; then > einfo "Tor configuration (${CONFFILE}) is valid." > return 0 > else > eerror "Tor configuration (${CONFFILE}) not valid." > /usr/bin/tor --verify-config --User tor -f ${CONFFILE} > return 1 > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting Tor" > HOME=/var/lib/tor > start-stop-daemon --start --user tor --pidfile "${PIDFILE}" --quiet --exec /usr/bin/tor -- --runasdaemon 1 --PidFile "${PIDFILE}" > /dev/null 2>&1 > eend $? >} > >stop() { > ebegin "Stopping Tor" > start-stop-daemon --stop --user tor --pidfile "${PIDFILE}" --exec /usr/bin/tor -- --PidFile "${PIDFILE}" > eend $? >} > >reload() { > if [ ! -f ${PIDFILE} ]; then > eerror "${SVCNAME} isn't running" > return 1 > fi > checkconfig || return 1 > ebegin "Reloading Tor configuration" > start-stop-daemon --stop --oknodo --signal HUP --pidfile ${PIDFILE} > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 268396
:
194326
| 194328 |
194330