Skip to content

Instantly share code, notes, and snippets.

@pwood
Created August 10, 2010 22:13
Show Gist options
  • Save pwood/518116 to your computer and use it in GitHub Desktop.
Save pwood/518116 to your computer and use it in GitHub Desktop.
# CCcam
description "CCcam"
author "Peter Wood <peter@alastria.net>"
start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown
#expect fork
respawn
script
USER=root
ARGS="-d -C /usr/local/src/cccam/CCcam.cfg"
/usr/local/src/cccam/CCcam.x86_64 $ARGS
end script
# MythTV Backend service
description "MythTV Backend"
author "Mario Limonciello <superm1@ubuntu.com>"
start on (started sasc-ng and local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown
#expect fork
respawn
script
USER=mythtv
ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
/usr/bin/mythbackend $ARGS
end script
# SASC-NG SoftCam
description "SASC-NG SoftCam"
author "Peter Wood <peter@alastria.net>"
start on (started cccam and local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown
respawn
emits sascng
pre-start script
sleep 5
modprobe dvbloopback num_adapters=2
sleep 5
end script
exec /usr/bin/sasc-ng -j 0:2 -j 1:3 --cam-budget --cam-dir /etc/camfiles --sid-allpid --sid-nocache -d 0xf05
post-stop script
rmmod dvbloopback
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment