RE: Unable to stop tvheadend service » tvheadend.conf
1 |
# tvheadend - DVB/IPTV streaming server
|
---|---|
2 |
#
|
3 |
# Tvheadend is a TV streaming server for Linux supporting DVB, ATSC, IPTV,
|
4 |
# and Analog video (V4L) as input sources.
|
5 |
|
6 |
description "Tvheadend DVB/IPTV streaming server" |
7 |
author "Adam Sutton <[email protected]>" |
8 |
|
9 |
# start on (local-filesystems and net-device-up and started udev-finish)
|
10 |
start on dvbhdhomerun |
11 |
stop on runlevel [!2345] |
12 |
|
13 |
expect fork |
14 |
respawn
|
15 |
|
16 |
script
|
17 |
[ -r /etc/default/tvheadend ] && . /etc/default/tvheadend |
18 |
|
19 |
[ "$TVH_ENABLED" = "1" ] || exit 0 |
20 |
|
21 |
ARGS="-f" |
22 |
[ -z "$TVH_USER" ] || ARGS="$ARGS -u $TVH_USER" |
23 |
[ -z "$TVH_GROUP" ] || ARGS="$ARGS -g $TVH_GROUP" |
24 |
[ -z "$TVH_CONF_DIR" ] || ARGS="$ARGS -c $TVH_CONF_DIR" |
25 |
[ -z "$TVH_ADAPTERS" ] || ARGS="$ARGS -a $TVH_ADAPTERS" |
26 |
[ "$TVH_IPV6" = "1" ] && ARGS="$ARGS -6" |
27 |
[ -z "$TVH_HTTP_PORT" ] || ARGS="$ARGS --http_port $TVH_HTTP_PORT" |
28 |
[ -z "$TVH_HTTP_ROOT" ] || ARGS="$ARGS --http_root $TVH_HTTP_ROOT" |
29 |
[ -z "$TVH_HTSP_PORT" ] || ARGS="$ARGS --htsp_port $TVH_HTSP_PORT" |
30 |
[ "$TVH_DEBUG" = "1" ] && ARGS="$ARGS -s" |
31 |
|
32 |
# [ ! -z "$TVH_DELAY" ] && sleep $TVH_DELAY
|
33 |
|
34 |
exec tvheadend $ARGS $TVH_ARGS |
35 |
end script |