1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 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 $? }