1#!/sbin/openrc-run
2
3# Sample init.d file for alpine linux.
4
5name="midr"
6command="/usr/bin/$name"
7command_user=www-data:www-data
8command_args="-d ${datadir} ${opts}"
9command_background="yes"
10
11start_stop_daemon_args="--user $sample_user:$sample_group"
12pidfile="/run/$name.pid"
13
14depend() {
15 need net
16 after firewall
17}
18
19start_pre() {
20 checkpath -d -o $command_user "$datadir"
21}