1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 13:52:40 +01:00

- Add media-tv/tvheadend-3.4.27 and media-libs/libdvbcsa-1.1.0

This commit is contained in:
2014-08-02 23:15:17 +02:00
parent f12a3e21c1
commit fcbf54a1bf
8 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# /etc/conf.d/tvheadend: config file for /etc/init.d/tvheadend
# See the tvheadend(1) manpage for more info.
# Run Tvheadend as this user.
TVHEADEND_USER="tvheadend"
# Run Tvheadend as this group.
TVHEADEND_GROUP="video"
# Path to Tvheadend config.
TVHEADEND_CONFIG="/etc/tvheadend"
# Other options you want to pass to Tvheadend.
TVHEADEND_OPTIONS=""

View File

@@ -0,0 +1,19 @@
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting Tvheadend"
start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \
-- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \
-c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping Tvheadend"
start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid
eend $?
}

View File

@@ -0,0 +1,14 @@
[Unit]
Description=tvheadend
After=network.target
[Service]
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -c /etc/tvheadend -u tvheadend -g video
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target