summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/swift/files/swift-account.initd')
-rw-r--r--sys-cluster/swift/files/swift-account.initd36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys-cluster/swift/files/swift-account.initd b/sys-cluster/swift/files/swift-account.initd
deleted file mode 100644
index 88fe05c..0000000
--- a/sys-cluster/swift/files/swift-account.initd
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-COMMAND=/usr/bin/swift-init
-PIDFILE=/var/run/swift/swift-account.pid
-
-depend() {
- after net
-}
-
-checkconfig() {
- if [ ! -r /etc/swift/swift.conf ]; then
- eerror "Missing required config file: /etc/swift/swift.conf"
- return 1
- fi
- if [ ! -r /etc/swift/account-server.conf ]; then
- eerror "Missing required config file: /etc/swift/account-server.conf"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return $?
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account start
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet -i --pidfile ${PIDFILE} ${COMMAND} -- account stop
- eend $?
-}