diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-11-09 16:32:27 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-11-09 16:32:27 +0100 |
commit | 04d3111a13947c2d72bcf4f9313b0fb1a19e0825 (patch) | |
tree | 165efab847476ed80901bfc6c4088780b98d5824 /community/oscam/oscam.initd | |
parent | 65c9e167fd467207e450f30ab2776e55cba7cfcf (diff) | |
download | aports-04d3111a13947c2d72bcf4f9313b0fb1a19e0825.tar.bz2 aports-04d3111a13947c2d72bcf4f9313b0fb1a19e0825.tar.xz |
main/oscam: move to community
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 +} |