aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2014-07-29 12:13:01 +0000
committerintrigeri <intrigeri@boum.org>2014-07-30 16:56:55 +0000
commit0a705797840f893a94bd5b8b2cbb86e58a3a3fc7 (patch)
tree33aeb68bcb5499789f98786cc3a5018b30b5a97b /contrib
parent5c200d9be28ac9e53caac333ddd334539524d9e1 (diff)
downloadtor-0a705797840f893a94bd5b8b2cbb86e58a3a3fc7.tar.gz
tor-0a705797840f893a94bd5b8b2cbb86e58a3a3fc7.zip
Verify configuration file via ExecStartPre in the systemd unit file (#12730).
Diffstat (limited to 'contrib')
-rw-r--r--contrib/dist/tor.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/dist/tor.service.in b/contrib/dist/tor.service.in
index 5d7670281b..9914a78895 100644
--- a/contrib/dist/tor.service.in
+++ b/contrib/dist/tor.service.in
@@ -4,6 +4,7 @@ After = syslog.target network.target nss-lookup.target
[Service]
Type = simple
+ExecStartPre = @BINDIR@/tor -f @CONFDIR@/torrc --verify-config
ExecStart = @BINDIR@/tor -f @CONFDIR@/torrc
ExecReload = /bin/kill -HUP ${MAINPID}
KillSignal = SIGINT