From c024e8614e9363abc2add8f5729733a1779c4ec6 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Fri, 30 Oct 2020 18:39:11 +0100 Subject: www-servers/caddy: Add 2.2.1 Package-Manager: Portage-3.0.8, Repoman-3.0.2 --- www-servers/caddy/files/caddy.initd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 www-servers/caddy/files/caddy.initd (limited to 'www-servers/caddy/files/caddy.initd') diff --git a/www-servers/caddy/files/caddy.initd b/www-servers/caddy/files/caddy.initd new file mode 100644 index 0000000..a9cf7ea --- /dev/null +++ b/www-servers/caddy/files/caddy.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="${RC_SVCNAME}" + +config="${CADDY_CONFIG:-/etc/caddy/Caddyfile}" +pidfile="/run/${RC_SVCNAME}/caddy.pid" + +command="caddy" +command_args="run --config ${config} --pidfile ${pidfile}" +command_user="caddy:http" +command_background=yes + +depend() { + use net + after dns +} + +start_pre() { + checkpath -q -d -o "${command_user}" "/run/${RC_SVCNAME}" +} -- cgit v1.2.3-2-gb3c3