aboutsummaryrefslogtreecommitdiff
path: root/midr/midr.initd
blob: 7640168335240358f011c053e37c958f88d873a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run

# Sample init.d file for alpine linux.

name="midr"
command="/usr/bin/$name"
command_user=www-data:www-data
command_args="-d ${datadir} ${opts}"
command_background="yes"

start_stop_daemon_args="--user $sample_user:$sample_group"
pidfile="/run/$name.pid"

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath -d -o $command_user "$datadir"
}