diff options
Diffstat (limited to 'main/oscam/oscam.initd')
-rw-r--r-- | main/oscam/oscam.initd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/main/oscam/oscam.initd b/main/oscam/oscam.initd new file mode 100644 index 0000000000..ed9918fd27 --- /dev/null +++ b/main/oscam/oscam.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript + +# oscam init.d + +name="oscam" +daemon="/usr/bin/$name" + +depend() { + use net +} + +start() { + ebegin "Starting oscam" + start-stop-daemon --start \ + --quiet \ + --user $user \ + --group $group \ + --name $name \ + --exec $daemon \ + -- $args + eend $? +} + +stop() { + ebegin "Stopping oscam" + start-stop-daemon --stop \ + --signal 2 \ + --name $name + eend $? +} |