|
@@ -5,7 +5,9 @@ After = syslog.target network.target nss-lookup.target
|
|
[Service]
|
|
[Service]
|
|
Type = simple
|
|
Type = simple
|
|
ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
|
|
ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
|
|
-ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
|
|
|
|
|
|
+# A torrc that has "RunAsDaemon 1" won't work with the "simple" service type;
|
|
|
|
+# let's explicitly override it.
|
|
|
|
+ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc --RunAsDaemon 0
|
|
ExecReload = /bin/kill -HUP ${MAINPID}
|
|
ExecReload = /bin/kill -HUP ${MAINPID}
|
|
KillSignal = SIGINT
|
|
KillSignal = SIGINT
|
|
TimeoutSec = 30
|
|
TimeoutSec = 30
|