[oe-commits] Denis 'GNUtoo' Carikli : tor: quiet the init script( else it prints to the console)

git version control git at git.openembedded.org
Tue Jul 5 16:07:56 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 301be5cccdc0d997e60813e58d7efb0df34e5fa3
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=301be5cccdc0d997e60813e58d7efb0df34e5fa3

Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Mon Jul  4 17:04:32 2011 +0200

tor: quiet the init script(else it prints to the console)

Without that patch the tor init script print to the console,
  even when the init script has finished to run.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>

---

 recipes/tor/files/tor.init  |    8 ++++----
 recipes/tor/tor_0.1.1.26.bb |    2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/recipes/tor/files/tor.init b/recipes/tor/files/tor.init
index e421347..0e9a5ab 100755
--- a/recipes/tor/files/tor.init
+++ b/recipes/tor/files/tor.init
@@ -11,20 +11,20 @@ test -f /etc/tor/tor-tsocks.conf || exit 0
 case "$1" in
   start)
     echo -n "Starting tor daemon"
-    start-stop-daemon --start --quiet --exec /usr/bin/tor &
+    start-stop-daemon --start --quiet --exec /usr/bin/tor > /dev/null &
     echo "."
     ;;
   stop)
     echo -n "Stopping tor daemon"
-    start-stop-daemon --stop --quiet --exec /usr/bin/tor &
+    start-stop-daemon --stop --quiet --exec /usr/bin/tor > /dev/null &
     echo "."
     ;;
   restart)
     echo -n "Stopping tor daemon"
-    start-stop-daemon --stop --quiet --exec /usr/bin/tor &
+    start-stop-daemon --stop --quiet --exec /usr/bin/tor > /dev/null &
     sleep 1
     echo -n "Starting tor daemon"
-    start-stop-daemon --start --quiet --exec /usr/bin/tor &
+    start-stop-daemon --start --quiet --exec /usr/bin/tor > /dev/null &
     echo "."
     ;;
   start_socats)
diff --git a/recipes/tor/tor_0.1.1.26.bb b/recipes/tor/tor_0.1.1.26.bb
index 1045c0b..a39725d 100644
--- a/recipes/tor/tor_0.1.1.26.bb
+++ b/recipes/tor/tor_0.1.1.26.bb
@@ -6,6 +6,8 @@ PRIORITY = "optional"
 LICENSE = "BSD"
 DEPENDS = "libevent openssl zlib"
 
+PR = "r1"
+
 SRC_URI = "http://tor.eff.org/dist/${P}.tar.gz \
           file://configure.patch \
           file://make.patch \





More information about the Openembedded-commits mailing list