diff options
Diffstat (limited to 'community/oscam/oscam.initd')
-rw-r--r-- | community/oscam/oscam.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/oscam/oscam.initd b/community/oscam/oscam.initd new file mode 100644 index 0000000000..32724d02c9 --- /dev/null +++ b/community/oscam/oscam.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +name=oscam +command=/usr/bin/oscam +command_args=$oscam_args +pidfile=$oscam_pid +start_stop_daemon_args="${oscam_user:+--user} $oscam_user" + +depend() { + use logger dns + need net + after firewall +} + +start_pre() { + checkpath --directory --owner $oscam_user:video --mode 0775 \ + /var/run/$name +} |