Project

General

Profile

Bug #3741 » tvheadend.conf

/etc/init/tvheadend.conf - ullix tv, 2016-04-21 19:29

 
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
stop  on runlevel [!2345]
11

    
12
expect fork
13
respawn
14

    
15
script
16
  [ -r /etc/default/tvheadend ] && . /etc/default/tvheadend
17

    
18
  [ "$TVH_ENABLED" = "1" ] || exit 0
19

    
20
  ARGS="-f"
21
  [ -z "$TVH_USER"      ] || ARGS="$ARGS -u $TVH_USER"
22
  [ -z "$TVH_GROUP"     ] || ARGS="$ARGS -g $TVH_GROUP"
23
  [ -z "$TVH_CONF_DIR"  ] || ARGS="$ARGS -c $TVH_CONF_DIR"
24
  [ -z "$TVH_ADAPTERS"  ] || ARGS="$ARGS -a $TVH_ADAPTERS"
25
  [ "$TVH_IPV6" = "1"   ] && ARGS="$ARGS -6"
26
  [ -z "$TVH_HTTP_PORT" ] || ARGS="$ARGS --http_port $TVH_HTTP_PORT"
27
  [ -z "$TVH_HTTP_ROOT" ] || ARGS="$ARGS --http_root $TVH_HTTP_ROOT"
28
  [ -z "$TVH_HTSP_PORT" ] || ARGS="$ARGS --htsp_port $TVH_HTSP_PORT"
29
  [ "$TVH_DEBUG" = "1"  ] && ARGS="$ARGS -s"
30

    
31
  exec tvheadend $ARGS $TVH_ARGS
32
end script
(2-2/3)