diff options
Diffstat (limited to 'debian/tor.init')
-rw-r--r-- | debian/tor.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/tor.init b/debian/tor.init index 29af4d2eec..cef735fe3f 100644 --- a/debian/tor.init +++ b/debian/tor.init @@ -90,9 +90,9 @@ check_torpiddir () { } check_config () { - if ! su -s /bin/sh -c "$DAEMON --verify-config" debian-tor > /dev/null; then + if ! "$DAEMON --verify-config" > /dev/null; then echo "ABORTED: Tor configuration invalid:" >&2 - su -s /bin/sh -c "$DAEMON --verify-config" debian-tor >&2 + $DAEMON --verify-config >&2 exit 1 fi } |