summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/tor/files/tor.initd')
-rw-r--r--net-misc/tor/files/tor.initd33
1 files changed, 0 insertions, 33 deletions
diff --git a/net-misc/tor/files/tor.initd b/net-misc/tor/files/tor.initd
deleted file mode 100644
index 02736e8ac7bb..000000000000
--- a/net-misc/tor/files/tor.initd
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/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 $
-
-depend() {
- need net
-}
-
-checkconfig() {
- # first check that it exists
- if [ ! -f /etc/tor/torrc ] ; then
- eerror "You need to setup /etc/tor/torrc first"
- eerror "Example is in /etc/tor/torrc.sample"
- return 1
- fi
-}
-
-
-
-start() {
- checkconfig || return 1
- ebegin "Starting Tor"
- HOME=/var/lib/tor
- start-stop-daemon --start --quiet --chuid tor --exec /usr/bin/tor -- --runasdaemon 1
- eend $?
-}
-
-stop() {
- ebegin "Stopping Tor"
- start-stop-daemon --stop --quiet --chuid tor --exec /usr/bin/tor
- eend $?
-}