From 9b582af28a6e9db16b1edca36b79b7fb3edfe87f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 1 Mar 2008 00:51:37 +0000 Subject: Run --verify-config before start/reload/restart as root. No longer su - to debian-tor tor run it. Given that we now even start Tor as root (it setuids later on) this should be fine (closes: #468566). svn:r13788 --- debian/tor.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/tor.init') 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 } -- cgit v1.2.3-54-g00ecf