aboutsummaryrefslogtreecommitdiffstats
path: root/main/ympd/ympd.initd
blob: 48493ef0355ff44b9ac940bb19fef6fb26c37433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run

name=ympd
command=/usr/bin/$name
command_args="-u $ympd_user"
command_background=YES
pidfile=$ympd_pid

depend() {
        use logger dns
        need net
        after firewall
}

start_pre() {
        checkpath --directory --owner "$ympd_user" \
		--mode 0775 /var/run/"$name"
}