summaryrefslogtreecommitdiff
path: root/debian/tor.init
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-06-01 00:42:13 +0000
committerPeter Palfrader <peter@palfrader.org>2007-06-01 00:42:13 +0000
commit02b9ed24553660d4a34ce4ca875b5ae1c4c9f243 (patch)
treef9101912f610011be4f70244013feb8921b2e58a /debian/tor.init
parent6bb65fa3713873b9e18a297426780b737cc2b0ce (diff)
downloadtor-02b9ed24553660d4a34ce4ca875b5ae1c4c9f243.tar.gz
tor-02b9ed24553660d4a34ce4ca875b5ae1c4c9f243.zip
Merge 10037:10432 into trunk, also brings in a newer trunk changelog with no real news
svn:r10433
Diffstat (limited to 'debian/tor.init')
-rw-r--r--debian/tor.init12
1 files changed, 6 insertions, 6 deletions
diff --git a/debian/tor.init b/debian/tor.init
index 7a69ae621a..e4a9310666 100644
--- a/debian/tor.init
+++ b/debian/tor.init
@@ -90,9 +90,9 @@ case "$1" in
fi
echo "Starting $DESC: $NAME..."
- if ! su -c "$DAEMON --verify-config" debian-tor > /dev/null; then
+ if ! su -s /bin/sh -c "$DAEMON --verify-config" debian-tor > /dev/null; then
echo "ABORTED: Tor configuration invalid:" >&2
- su -c "$DAEMON --verify-config" debian-tor >&2
+ su -s /bin/sh -c "$DAEMON --verify-config" debian-tor >&2
exit 1
fi
@@ -131,9 +131,9 @@ case "$1" in
exit 0
fi
- if ! su -c "$DAEMON --verify-config" debian-tor > /dev/null; then
+ if ! su -s /bin/sh -c "$DAEMON --verify-config" debian-tor > /dev/null; then
echo "ABORTED: Tor configuration invalid:" >&2
- su -c "$DAEMON --verify-config" debian-tor >&2
+ su -s /bin/sh -c "$DAEMON --verify-config" debian-tor >&2
exit 1
fi
@@ -148,9 +148,9 @@ case "$1" in
fi
;;
restart)
- if ! su -c "$DAEMON --verify-config" debian-tor > /dev/null; then
+ if ! su -s /bin/sh -c "$DAEMON --verify-config" debian-tor > /dev/null; then
echo "Restarting Tor ABORTED: Tor configuration invalid:" >&2
- su -c "$DAEMON --verify-config" debian-tor >&2
+ su -s /bin/sh -c "$DAEMON --verify-config" debian-tor >&2
exit 1
fi