From: Adam Sutton Date: Sun, 7 Apr 2013 13:04:53 +0000 (+0100) Subject: init: add trace options to start scripts X-Git-Tag: v3.9~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=447f0377199ee393eb600d0a8c5b950b6b19b081;p=thirdparty%2Ftvheadend.git init: add trace options to start scripts --- diff --git a/debian/tvheadend.default b/debian/tvheadend.default index 29b6dbef8..1fda3e625 100644 --- a/debian/tvheadend.default +++ b/debian/tvheadend.default @@ -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="" diff --git a/debian/tvheadend.init b/debian/tvheadend.init index b4aea9cbd..5c93f8bbd 100644 --- a/debian/tvheadend.init +++ b/debian/tvheadend.init @@ -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 diff --git a/debian/tvheadend.upstart b/debian/tvheadend.upstart index a5d704045..745b373fe 100644 --- a/debian/tvheadend.upstart +++ b/debian/tvheadend.upstart @@ -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