summaryrefslogtreecommitdiff
path: root/net/tor/files
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-09-27 17:44:12 +0000
committertv <tv@pkgsrc.org>2005-09-27 17:44:12 +0000
commite600c9fe8a1690264c7cf4897e9bf11eeb512cba (patch)
tree183aef9d6aa97957d3e2499b8a7f33d358df28cb /net/tor/files
parentc413838a65aa9d76c9293d3bb6f5e71fc0d49826 (diff)
downloadpkgsrc-e600c9fe8a1690264c7cf4897e9bf11eeb512cba.tar.gz
Use @PKG_HOME@ to store the pidfile, so that tor can actually create it
(/var/run is not writable by user "tor", and tor drops privs early).
Diffstat (limited to 'net/tor/files')
-rw-r--r--net/tor/files/tor.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tor/files/tor.in b/net/tor/files/tor.in
index 56ea5fb0224..9b6db2206c8 100644
--- a/net/tor/files/tor.in
+++ b/net/tor/files/tor.in
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: tor.in,v 1.1 2005/02/13 20:27:54 jschauma Exp $
+# $NetBSD: tor.in,v 1.2 2005/09/27 17:44:12 tv Exp $
#
# PROVIDE: tor
# REQUIRE: DAEMON
@@ -21,7 +21,7 @@ command="@PREFIX@/bin/tor"
required_files="@PKG_SYSCONFDIR@/torrc"
start_cmd="tor_start"
stop_cmd="tor_stop"
-pidfile="/var/run/${name}.pid"
+pidfile="@PKG_HOME@/${name}.pid"
restart_cmd="tor_stop ; tor_start"
tor_start ()