]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
init: add trace options to start scripts
authorAdam Sutton <dev@adamsutton.me.uk>
Sun, 7 Apr 2013 13:04:53 +0000 (14:04 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Sun, 7 Apr 2013 13:04:53 +0000 (14:04 +0100)
debian/tvheadend.default
debian/tvheadend.init
debian/tvheadend.upstart

index 29b6dbef8cdec4134b6f7b0e1d0faba65feefd32..1fda3e6252778014d475bfe32a4baecab72118f4 100644 (file)
@@ -47,6 +47,10 @@ TVH_HTSP_PORT=""
 #   if set to 1 will output debug to syslog
 TVH_DEBUG=0
 
+# TVH_TRACE
+#   enable trace in subsystems
+TVH_TRACE=""
+
 # TVH_DELAY
 #   if set startup will be delayed N seconds to allow hardware init
 TVH_DELAY=""
index b4aea9cbda3916b79c37c13a43f8671bf720da3f..5c93f8bbd4b25ea0e36dbc52e07e44d79ba63fcb 100644 (file)
@@ -38,6 +38,7 @@ ARGS="-f"
 [ -z "$TVH_HTTP_ROOT" ] || ARGS="$ARGS --http_root $TVH_HTTP_ROOT"
 [ -z "$TVH_HTSP_PORT" ] || ARGS="$ARGS --htsp_port $TVH_HTSP_PORT"
 [ "$TVH_DEBUG" = "1"  ] && ARGS="$ARGS -s"
+[ -z "$TVH_TRACE"     ] || ARGS="$ARGS --trace $TVH_TRACE"
 
 # Load the VERBOSE setting and other rcS variables
 [ -f /etc/default/rcS ] && . /etc/default/rcS
index a5d704045cb12291986c358c216f07cf8c3dfcbf..745b373fecd6d29332eb965c95c88a07702582b0 100644 (file)
@@ -27,6 +27,7 @@ script
   [ -z "$TVH_HTTP_ROOT" ] || ARGS="$ARGS --http_root $TVH_HTTP_ROOT"
   [ -z "$TVH_HTSP_PORT" ] || ARGS="$ARGS --htsp_port $TVH_HTSP_PORT"
   [ "$TVH_DEBUG" = "1"  ] && ARGS="$ARGS -s"
+  [ -z "$TVH_TRACE"     ] || ARGS="$ARGS --trace $TVH_TRACE"
 
   [ ! -z "$TVH_DELAY" ] && sleep $TVH_DELAY