aboutsummaryrefslogtreecommitdiffstats
path: root/www-servers/caddy-bin/files
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-10-30 21:01:40 +0100
committerWynn Wolf Arbor2020-10-30 21:01:40 +0100
commit29c96f759f52b467074fb96a36495adc04e8ec5d (patch)
tree1e83d827abf7389d794602b21cb77db7e2477a7b /www-servers/caddy-bin/files
parentc024e8614e9363abc2add8f5729733a1779c4ec6 (diff)
downloadpramantha-29c96f759f52b467074fb96a36495adc04e8ec5d.tar.gz
www-servers/caddy-bin: Drop
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Diffstat (limited to 'www-servers/caddy-bin/files')
-rw-r--r--www-servers/caddy-bin/files/caddy.confd4
-rw-r--r--www-servers/caddy-bin/files/caddy.initd48
2 files changed, 0 insertions, 52 deletions
diff --git a/www-servers/caddy-bin/files/caddy.confd b/www-servers/caddy-bin/files/caddy.confd
deleted file mode 100644
index ae77de2..0000000
--- a/www-servers/caddy-bin/files/caddy.confd
+++ /dev/null
@@ -1,4 +0,0 @@
-CADDYPATH="/var/lib/caddy"
-CADDY_CONFIG="/etc/caddy/Caddyfile"
-CADDY_OPTS="-agree=true -conf=${CADDY_CONFIG}"
-rc_ulimit="-n 8192"
diff --git a/www-servers/caddy-bin/files/caddy.initd b/www-servers/caddy-bin/files/caddy.initd
deleted file mode 100644
index c0112d3..0000000
--- a/www-servers/caddy-bin/files/caddy.initd
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="${RC_SVCNAME}"
-extra_commands="configtest"
-extra_started_commands="reload"
-description_configtest="Run Caddy's internal config check"
-description_reload="Reload Caddy configuration"
-
-export CADDYPATH="${CADDYPATH}"
-command="caddy"
-command_args="${CADDY_OPTS}"
-command_user="${command_user:-caddy:http}"
-command_background=yes
-pidfile="/run/${RC_SVCNAME}.pid"
-
-depend() {
- use net
- after dns
-}
-
-start_pre() {
- if [ "${RC_CMD}" != "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_pre() {
- if [ "${RC_CMD}" = "restart" ]; then
- configtest || return 1
- fi
-}
-
-reload() {
- configtest || return 1
- ebegin "Refreshing ${name}'s configuration"
- start-stop-daemon --signal USR1 --pidfile "${pidfile}"
- eend $? "Failed to reload ${name}"
-}
-
-configtest() {
- ebegin "Checking ${name} configuration"
- if ! ${command} -validate -conf="${CADDY_CONFIG}" >/dev/null 2>&1; then
- ${command} -validate -conf="${CADDY_CONFIG}"
- fi
- eend $? "Failed, please correct the errors above"
-}