aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkhttpd/darkhttpd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-30 06:09:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-30 06:09:23 +0000
commit5fd553eceec8325f829089d13e5828e002393438 (patch)
tree1f07b96fe9cc9e44c953a9e71922cfd3b19a854e /main/darkhttpd/darkhttpd.initd
parent0570655ae470aec9b8607c9ee653a8e6fb9adfba (diff)
downloadaports-5fd553eceec8325f829089d13e5828e002393438.tar.bz2
aports-5fd553eceec8325f829089d13e5828e002393438.tar.xz
main/darkhttpd: allow multiple instances
Diffstat (limited to 'main/darkhttpd/darkhttpd.initd')
-rw-r--r--main/darkhttpd/darkhttpd.initd5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/darkhttpd/darkhttpd.initd b/main/darkhttpd/darkhttpd.initd
index 42514fa650..1ba6e0ad88 100644
--- a/main/darkhttpd/darkhttpd.initd
+++ b/main/darkhttpd/darkhttpd.initd
@@ -2,7 +2,7 @@
description="darkhttpd web server"
command="/usr/bin/darkhttpd"
-command_args="${document_root:-/var/www/localhost/htdocs} --chroot --daemon --uid darkhttpd --gid www-data --log /var/log/darkhttpd/access.log $darkhttpd_args"
+command_args="${document_root:-/var/www/localhost/htdocs} --chroot --daemon --uid darkhttpd --gid www-data $darkhttpd_args"
procname="darkhttpd"
pidfile=""
stopsig="SIGTERM"
@@ -14,7 +14,10 @@ optional_arg() {
}
start_pre() {
+ checkpath --directory --owner darkhttpd "${logdir:-/var/log/$SVCNAME}"
+ optional_arg --log "${logdir:-/var/log/$SVCNAME}"/access.log
optional_arg --addr "$addr"
optional_arg --port "$port"
optional_arg --mimetypes "$mimetypes"
}
+