From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 23BB5138350 for ; Sat, 18 Jan 2020 19:56:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A0FEE0917; Sat, 18 Jan 2020 19:56:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10B8EE0917 for ; Sat, 18 Jan 2020 19:56:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7622834E197 for ; Sat, 18 Jan 2020 19:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6889E95 for ; Sat, 18 Jan 2020 19:56:22 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1579377310.83987709d1e866c6314eef26aff7e45fae6f921c.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/gatling/files/gatling.initd www-servers/gatling/files/gatling.initd-2 X-VCS-Directories: www-servers/gatling/files/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 83987709d1e866c6314eef26aff7e45fae6f921c X-VCS-Branch: master Date: Sat, 18 Jan 2020 19:56:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 33ecf641-0ecb-4299-9b95-34e99d643a7f X-Archives-Hash: 456f843d8af6c1cb46933d4e7aed002a commit: 83987709d1e866c6314eef26aff7e45fae6f921c Author: Michael Mair-Keimberger gmail com> AuthorDate: Fri Jan 10 08:46:28 2020 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sat Jan 18 19:55:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83987709 www-servers/gatling: remove unused files Closes: https://github.com/gentoo/gentoo/pull/14295 Signed-off-by: Michael Mair-Keimberger gmail.com> Signed-off-by: Sebastian Pipping gentoo.org> www-servers/gatling/files/gatling.initd | 63 ------------------------------- www-servers/gatling/files/gatling.initd-2 | 63 ------------------------------- 2 files changed, 126 deletions(-) diff --git a/www-servers/gatling/files/gatling.initd b/www-servers/gatling/files/gatling.initd deleted file mode 100644 index fadb1ce9d17..00000000000 --- a/www-servers/gatling/files/gatling.initd +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Gatling high performance web server init script" -opts="reload" - -depend() { - need net -} - -checkconfig() { - # Verify UID is valid for running process. - if [[ ! $(id ${GATLING_UID} 2>/dev/null) ]]; then - ewarn "User ${GATLING_UID} not found!" - return 1 - fi - - # Set gatling run opts - if yesno ${VHOST};then VHOST=-v;else VHOST=-V;fi - if yesno ${SSL};then SSL=-e;else SSL=-E;fi - if yesno ${DIR_INDEXING};then DIR_INDEXING=-d;else DIR_INDEXING=-D;fi - if yesno ${FTP}; then FTP=-f;else FTP=-F;fi - if yesno ${FTP_AUTH}; then FTP_AUTH=-l;else unset FTP_AUTH;fi - if yesno ${FTP_UP};then unset FTP_UP;else FTP_UP=-U;fi - yesno ${TRANS_PROXY} && TRANS_PROXY=-t -} - -start() { - checkconfig || return 1 - - ebegin "Starting gatling" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -} - -stop() { - ebegin "Stopping gatling" - start-stop-daemon --quiet --stop --pidfile ${PID} - eend $? -} - -reload() { - if ! service_started "${SVCNAME}" ; then - eerror "${SVCNAME} isn't running" - return 1 - fi - - checkconfig || return 1 - - ebegin "Sending gatling the HUP signal" - start-stop-daemon --quiet --signal HUP --pidfile ${PID} - - ebegin "Restarting gatling server" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -} diff --git a/www-servers/gatling/files/gatling.initd-2 b/www-servers/gatling/files/gatling.initd-2 deleted file mode 100644 index 77f436009b3..00000000000 --- a/www-servers/gatling/files/gatling.initd-2 +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Gatling high performance web server init script" -extra_started_commands="reload" - -depend() { - need net -} - -checkconfig() { - # Verify UID is valid for running process. - if [[ ! $(id ${GATLING_UID} 2>/dev/null) ]]; then - ewarn "User ${GATLING_UID} not found!" - return 1 - fi - - # Set gatling run opts - if yesno ${VHOST};then VHOST=-v;else VHOST=-V;fi - if yesno ${SSL};then SSL=-e;else SSL=-E;fi - if yesno ${DIR_INDEXING};then DIR_INDEXING=-d;else DIR_INDEXING=-D;fi - if yesno ${FTP}; then FTP=-f;else FTP=-F;fi - if yesno ${FTP_AUTH}; then FTP_AUTH=-l;else unset FTP_AUTH;fi - if yesno ${FTP_UP};then unset FTP_UP;else FTP_UP=-U;fi - if yesno ${TRANS_PROXY};then TRANS_PROXY=-t;else unset TRANS_PROXY;fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting gatling" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -} - -stop() { - ebegin "Stopping gatling" - start-stop-daemon --quiet --stop --pidfile ${PID} - eend $? -} - -reload() { - if ! service_started "${SVCNAME}" ; then - eerror "${SVCNAME} isn't running" - return 1 - fi - - checkconfig || return 1 - - ebegin "Sending gatling the HUP signal" - start-stop-daemon --quiet --signal HUP --pidfile ${PID} - - ebegin "Restarting gatling server" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -}