[tor/f16] init: specify --runasdaemon explicitly

ensc ensc at fedoraproject.org
Sun Sep 18 11:22:44 UTC 2011


commit 4e2d76da24d5b8bc2d16a9fa409f31a5e6af8201
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date:   Sun Sep 18 13:13:23 2011 +0200

    init: specify --runasdaemon explicitly

 tor.systemd.service |    2 +-
 tor.upstart         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tor.systemd.service b/tor.systemd.service
index eb94a22..d8f36e8 100644
--- a/tor.systemd.service
+++ b/tor.systemd.service
@@ -8,7 +8,7 @@ Environment = TOR_NOFILE=4096
 EnvironmentFile = -/etc/sysconfig/tor
 
 Type = simple
-ExecStart = /usr/bin/tor --quiet
+ExecStart = /usr/bin/tor --runasdaemon 0 --quiet
 ExecReload = /bin/kill -HUP ${MAINPID}
 ExecStop = /bin/kill -INT ${MAINPID}
 TimeoutSec = ${TOR_SHUTDOWN_WAIT}
diff --git a/tor.upstart b/tor.upstart
index e1a64eb..03975db 100644
--- a/tor.upstart
+++ b/tor.upstart
@@ -7,4 +7,4 @@ stop  on runlevel [!345]
 limit nofile 4096 4096
 
 respawn
-exec /usr/bin/tor --quiet
+exec /usr/bin/tor --runasdaemon 0 --quiet


More information about the scm-commits mailing list