aboutsummaryrefslogtreecommitdiff
path: root/midr/midr.initd
diff options
context:
space:
mode:
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"
+}