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:
14
media-tv/tvheadend/files/tvheadend.confd
Normal file
14
media-tv/tvheadend/files/tvheadend.confd
Normal 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=""
|
||||
19
media-tv/tvheadend/files/tvheadend.initd
Normal file
19
media-tv/tvheadend/files/tvheadend.initd
Normal 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 $?
|
||||
}
|
||||
14
media-tv/tvheadend/files/tvheadend.service
Normal file
14
media-tv/tvheadend/files/tvheadend.service
Normal 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
|
||||
Reference in New Issue
Block a user