Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71866 Details for
Bug 111140
Improved the initscript for net-misc/tor
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init script
tor (text/plain), 1.10 KB, created by
Cédric Krier
on 2005-11-01 06:22:50 UTC
(
hide
)
Description:
init script
Filename:
MIME Type:
Creator:
Cédric Krier
Created:
2005-11-01 06:22:50 UTC
Size:
1.10 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd,v 1.4 2005/09/11 23:14:16 humpback Exp $ > >TORDIR="/etc/tor" >TOR="${myservice##*.}" >if [[ -n ${TOR} && ${myservice} != "tor" ]]; then > TORPID="/var/run/tor/tor.${TOR}.pid" >else > TORPID="/var/run/tor/tor.pid" >fi >TORCONF="${TORDIR}/${TOR}rc" > >depend() { > need net >} > >checkconfig() { > # first check that it exists > if [ ! -f ${TORCONF} ] ; then > eerror "You need to setup ${TORCONF} first" > eerror "Example is in /etc/tor/torrc.sample" > return 1 > fi >} > > > >start() { > checkconfig || return 1 > ebegin "Starting ${myservice}" > HOME=/var/lib/tor > start-stop-daemon --start --quiet --chuid tor --exec /usr/bin/tor --pidfile ${TORPID} -- -f $TORCONF --runasdaemon 1 --PIDFile ${TORPID} > eend $? >} > >stop() { > ebegin "Stopping Tor" > start-stop-daemon --stop --quiet --chuid tor --exec /usr/bin/tor --pidfile ${TORPID} > 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 111140
: 71866