aboutsummaryrefslogtreecommitdiff
path: root/midr/midr.initd
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-26 01:28:18 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-07-26 01:28:18 +0000
commit1e2ffc2bb8e40727cfcf85121f50fa8d728591bb (patch)
tree3d3ef0827023b75940aab90f3dcb70695e215d69 /midr/midr.initd
parent686604647cfc3df98eb94b759166b2b1c83db7d8 (diff)
downloadapkbuilds-1e2ffc2bb8e40727cfcf85121f50fa8d728591bb.tar.gz
apkbuilds-1e2ffc2bb8e40727cfcf85121f50fa8d728591bb.tar.bz2
apkbuilds-1e2ffc2bb8e40727cfcf85121f50fa8d728591bb.zip
feat: Update midr version
Diffstat (limited to 'midr/midr.initd')
-rw-r--r--midr/midr.initd11
1 files changed, 8 insertions, 3 deletions
diff --git a/midr/midr.initd b/midr/midr.initd
index 0dc706c..7640168 100644
--- a/midr/midr.initd
+++ b/midr/midr.initd
@@ -2,9 +2,10 @@
# Sample init.d file for alpine linux.
-name=
-command="/usr/sbin/$name"
-command_args="$sample_opts"
+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"
@@ -14,3 +15,7 @@ depend() {
need net
after firewall
}
+
+start_pre() {
+ checkpath -d -o $command_user "$datadir"
+}