diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-04-28 13:22:29 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-04-28 13:22:29 +0000 |
commit | 1164a45081f2c3b9916d7f42da66353d39a70666 (patch) | |
tree | 475708103113d656d357eb13c15ad428256f9ac1 /main/oscam/oscam.initd | |
parent | 5af70673f0e99e9c59eb40b3c2abe52f34b094dc (diff) | |
download | aports-1164a45081f2c3b9916d7f42da66353d39a70666.tar.bz2 aports-1164a45081f2c3b9916d7f42da66353d39a70666.tar.xz |
main/oscam: new snapshot and misc fixes
simplified init.d script with pid generation
set pax flags to prevent segfault on grsec
Diffstat (limited to 'main/oscam/oscam.initd')
-rw-r--r-- | main/oscam/oscam.initd | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/main/oscam/oscam.initd b/main/oscam/oscam.initd index ed9918fd27..564f3ac6d4 100644 --- a/main/oscam/oscam.initd +++ b/main/oscam/oscam.initd @@ -1,30 +1,12 @@ #!/sbin/runscript -# oscam init.d - -name="oscam" -daemon="/usr/bin/$name" +name=oscam +command=/usr/bin/oscam +command_args=$oscam_args +pidfile=$oscam_pid 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 $? + use logger dns + need net + after firewall } |