Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Created January 16, 2013 22:36
Show Gist options
  • Save azbesthu/4551610 to your computer and use it in GitHub Desktop.
Save azbesthu/4551610 to your computer and use it in GitHub Desktop.
oscam card reader daemon for tvheadend
/etc/init/oscam.conf
## oscam server
description "oscam"
author "none"
start on startup
stop on runlevel [!2345]
#respawn
pre-start script
test -x /usr/bin/oscam || { stop; logger -t oscam "cannot execute /usr/bin/oscam, exiting" ; exit 1; }
sleep 5
end script
exec su - azbest -c "/usr/bin/oscam -c /home/azbest/tvstream/oscam-conf/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment