From 1fe2776b26d6fe83e7bcd662386e6448754c7ca9 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Fri, 14 Oct 2022 21:30:02 +0200 Subject: feat: fix remote pathing --- apks/midr/midr.initd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apks/midr/midr.initd (limited to 'apks/midr/midr.initd') diff --git a/apks/midr/midr.initd b/apks/midr/midr.initd new file mode 100644 index 0000000..20a069f --- /dev/null +++ b/apks/midr/midr.initd @@ -0,0 +1,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 www-data:www-data" +pidfile="/run/$name.pid" + +depend() { + need net + after firewall +} + +start_pre() { + checkpath -d -o $command_user "$datadir" +} -- cgit v1.2.3