Added remnants from mediacenter-overlay
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Options to pass to oscam (s. man oscam)
|
||||
OSCAM_OPTS=""
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
depend() {
|
||||
before tvheadend
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting OSCAM"
|
||||
start-stop-daemon --start --quiet --background \
|
||||
--make-pidfile --pidfile /var/run/oscam.pid \
|
||||
--exec /usr/bin/oscam -- ${OSCAM_OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping OSCAM"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/oscam.pid \
|
||||
--exec /usr/bin/oscam
|
||||
eend $?
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=OSCAM TV Descrambler
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/oscam.pid
|
||||
ExecStart=/usr/bin/oscam --restart 0 --pidfile /run/oscam.pid --daemon
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user