diff options
Diffstat (limited to 'main/darkhttpd/darkhttpd.initd')
-rw-r--r-- | main/darkhttpd/darkhttpd.initd | 5 |
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" } + |