aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-12-14 15:44:46 +0100
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2022-12-14 15:45:39 +0100
commit3d997ab63ed54091936ac148567075906b35e90d (patch)
treea2c30d254cf6568abbcb0dce64f1bf061439ceb6 /sys-cluster/swift/files/swift-proxy.initd
parentsci-libs/plasma: remove python requirements (diff)
downloadguru-3d997ab63ed54091936ac148567075906b35e90d.tar.gz
guru-3d997ab63ed54091936ac148567075906b35e90d.tar.bz2
guru-3d997ab63ed54091936ac148567075906b35e90d.zip
*/*: remove masked packages
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'sys-cluster/swift/files/swift-proxy.initd')
-rw-r--r--sys-cluster/swift/files/swift-proxy.initd56
1 files changed, 0 insertions, 56 deletions
diff --git a/sys-cluster/swift/files/swift-proxy.initd b/sys-cluster/swift/files/swift-proxy.initd
deleted file mode 100644
index 69427b285..000000000
--- a/sys-cluster/swift/files/swift-proxy.initd
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-COMMAND=/usr/bin/swift-init
-PIDFILE=/run/swift/proxy-server.pid
-
-depend() {
- after net
-}
-
-opts="reload"
-
-checkconfig() {
- if [ ! -r /etc/swift/swift.conf ]; then
- eerror "Missing required config file: /etc/swift/swift.conf"
- return 1
- fi
- if [ ! -r /etc/swift/proxy-server.conf ]; then
- eerror "Missing required config file: /etc/swift/proxy-server.conf"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return $?
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy start
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy stop
- eend $?
-}
-
-reload() {
- checkconfig || return $?
- ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --quiet -i ${COMMAND} -- proxy reload
- eend $? "Failed to reload ${SVCNAME}"
-}
-
-restart() {
- checkconfig || return $?
- ebegin "Restarting ${SVCNAME}"
- start-stop-daemon --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- proxy restart
- eend $? "Failed to restart ${SVCNAME}"
-}
-
-status() {
- start-stop-daemon --quiet -i ${COMMAND} -- proxy status
- eend $? "Failed to get status for ${SVCNAME}"
-}