aboutsummaryrefslogtreecommitdiffstats
path: root/community/oscam/oscam.initd
blob: 32724d02c9e42c3f987939fdf3bc606f939a5729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}