aboutsummaryrefslogblamecommitdiffstats
path: root/community/oscam/oscam.initd
blob: 32724d02c9e42c3f987939fdf3bc606f939a5729 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
 



                        
                                                          

          


                      
 




                                                                     
#!/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
}