Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 676015 Details for
Bug 877343
access to not existent file /var/cache/swift/account.recon
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Candidate fix 2
openstack-swift-bz885530-2.diff (text/plain), 31.36 KB, created by
Pete Zaitcev
on 2013-01-10 04:09:06 UTC
(
hide
)
Description:
Candidate fix 2
Filename:
MIME Type:
Creator:
Pete Zaitcev
Created:
2013-01-10 04:09:06 UTC
Size:
31.36 KB
patch
obsolete
>commit 92af02c64b49cdd14a7109929d959a5022d0107d >Author: Pete Zaitcev <zaitcev@kotori.zaitcev.us> >Date: Wed Jan 9 20:46:59 2013 -0700 > > Fix bz#885530, take 1. > >diff --git a/openstack-swift-account-auditor.init b/openstack-swift-account-auditor.init >new file mode 100644 >index 0000000..aa28dbb >--- /dev/null >+++ b/openstack-swift-account-auditor.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-account >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift account auditor >+# Description: Account auditor for swift. >+### END INIT INFO >+ >+# openstack-swift-account-auditor: swift account auditor >+# >+# chkconfig: - 98 02 >+# description: Account auditor for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="account" >+subserv="auditor" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" $subserv start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" $subserv stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" $subserv status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-account-auditor.upstart b/openstack-swift-account-auditor.upstart >new file mode 100644 >index 0000000..fda6a25 >--- /dev/null >+++ b/openstack-swift-account-auditor.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Account Auditor" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-account-auditor /etc/swift/account-server.conf" swift >diff --git a/openstack-swift-account-reaper.init b/openstack-swift-account-reaper.init >new file mode 100644 >index 0000000..fd09a3b >--- /dev/null >+++ b/openstack-swift-account-reaper.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-account-reaper >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift account reaper >+# Description: Account reaper for swift. >+### END INIT INFO >+ >+# openstack-swift-account: swift account reaper >+# >+# chkconfig: - 98 02 >+# description: Account reaper for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="account" >+subserv="reaper" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" $subserv start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" $subserv stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" $subserv status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-account-reaper.upstart b/openstack-swift-account-reaper.upstart >new file mode 100644 >index 0000000..18e59af >--- /dev/null >+++ b/openstack-swift-account-reaper.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Account Reaper" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-account-reaper /etc/swift/account-server.conf" swift >diff --git a/openstack-swift-account-replicator.init b/openstack-swift-account-replicator.init >new file mode 100644 >index 0000000..39f670f >--- /dev/null >+++ b/openstack-swift-account-replicator.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-account >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift account replicator >+# Description: Account replicator for swift. >+### END INIT INFO >+ >+# openstack-swift-account: swift account replicator >+# >+# chkconfig: - 98 02 >+# description: Account replicator for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="account" >+subserv="replicator" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" $subserv start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" $subserv stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" $subserv status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-account-replicator.upstart b/openstack-swift-account-replicator.upstart >new file mode 100644 >index 0000000..20f4b6c >--- /dev/null >+++ b/openstack-swift-account-replicator.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Account Replicator" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-account-replicator /etc/swift/account-server.conf" swift >diff --git a/openstack-swift-account.init b/openstack-swift-account.init >index 922963a..fe0aafe 100644 >--- a/openstack-swift-account.init >+++ b/openstack-swift-account.init >@@ -18,20 +18,21 @@ > . /usr/share/openstack-swift/functions > > name="account" >+subserv="server" > > [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" > >-lockfile="/var/lock/subsys/openstack-swift-account" >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" > > start() { >- swift_action "$name" start >+ swift_action "$name" $subserv start > retval=$? > [ $retval -eq 0 ] && touch $lockfile > return $retval > } > > stop() { >- swift_action "$name" stop >+ swift_action "$name" $subserv stop > retval=$? > [ $retval -eq 0 ] && rm -f $lockfile > return $retval >@@ -43,7 +44,7 @@ restart() { > } > > rh_status() { >- swift_action "$name" status >+ swift_action "$name" $subserv status > } > > rh_status_q() { >diff --git a/openstack-swift-container-auditor.init b/openstack-swift-container-auditor.init >new file mode 100644 >index 0000000..89439e4 >--- /dev/null >+++ b/openstack-swift-container-auditor.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-container >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift container auditor >+# Description: Container auditor for swift. >+### END INIT INFO >+ >+# openstack-swift-container: swift container auditor >+# >+# chkconfig: - 98 02 >+# description: Container auditor for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="container" >+subserv="auditor" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-container-auditor.upstart b/openstack-swift-container-auditor.upstart >new file mode 100644 >index 0000000..c9897e1 >--- /dev/null >+++ b/openstack-swift-container-auditor.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Container Auditor" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-container-auditor /etc/swift/container-server.conf" swift >diff --git a/openstack-swift-container-replicator.init b/openstack-swift-container-replicator.init >new file mode 100644 >index 0000000..03bcc47 >--- /dev/null >+++ b/openstack-swift-container-replicator.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-container >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift container replicator >+# Description: Container replicator for swift. >+### END INIT INFO >+ >+# openstack-swift-container: swift container replicator >+# >+# chkconfig: - 98 02 >+# description: Container replicator for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="container" >+subserv="replicator" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-container-replicator.upstart b/openstack-swift-container-replicator.upstart >new file mode 100644 >index 0000000..e488f5d >--- /dev/null >+++ b/openstack-swift-container-replicator.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Container Replicator" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-container-replicator /etc/swift/container-server.conf" swift >diff --git a/openstack-swift-container-updater.init b/openstack-swift-container-updater.init >new file mode 100644 >index 0000000..6fea8a7 >--- /dev/null >+++ b/openstack-swift-container-updater.init >@@ -0,0 +1,79 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-container >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift container updater >+# Description: Container updater for swift. >+### END INIT INFO >+ >+# openstack-swift-container: swift container updater >+# >+# chkconfig: - 98 02 >+# description: Container updater for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="container" >+subserv="updater" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-container-updater.upstart b/openstack-swift-container-updater.upstart >new file mode 100644 >index 0000000..1179a49 >--- /dev/null >+++ b/openstack-swift-container-updater.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Container Updater" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-container-updater /etc/swift/container-server.conf" swift >diff --git a/openstack-swift-container.init b/openstack-swift-container.init >index 65bcd32..0341287 100644 >--- a/openstack-swift-container.init >+++ b/openstack-swift-container.init >@@ -18,20 +18,21 @@ > . /usr/share/openstack-swift/functions > > name="container" >+subserv="server" > > [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" > >-lockfile="/var/lock/subsys/openstack-swift-container" >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" > > start() { >- swift_action "$name" start >+ swift_action "$name" "$subserv" start > retval=$? > [ $retval -eq 0 ] && touch $lockfile > return $retval > } > > stop() { >- swift_action "$name" stop >+ swift_action "$name" "$subserv" stop > retval=$? > [ $retval -eq 0 ] && rm -f $lockfile > return $retval >@@ -43,7 +44,7 @@ restart() { > } > > rh_status() { >- swift_action "$name" status >+ swift_action "$name" "$subserv" status > } > > rh_status_q() { >diff --git a/openstack-swift-object-auditor.init b/openstack-swift-object-auditor.init >new file mode 100644 >index 0000000..7ce245e >--- /dev/null >+++ b/openstack-swift-object-auditor.init >@@ -0,0 +1,80 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-object >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift object auditor >+# Description: Object auditor for swift. >+### END INIT INFO >+ >+# openstack-swift-object: swift object auditor >+# >+# chkconfig: - 98 02 >+# description: Object auditor for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="object" >+subserv="auditor" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-object-auditor.upstart b/openstack-swift-object-auditor.upstart >new file mode 100644 >index 0000000..17227e4 >--- /dev/null >+++ b/openstack-swift-object-auditor.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Object Auditor" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-object-auditor /etc/swift/object-server.conf" swift >diff --git a/openstack-swift-object-expirer.init b/openstack-swift-object-expirer.init >new file mode 100644 >index 0000000..eb60b5d >--- /dev/null >+++ b/openstack-swift-object-expirer.init >@@ -0,0 +1,80 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-object >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift object expirer >+# Description: Object expirer for swift. >+### END INIT INFO >+ >+# openstack-swift-object: swift object expirer >+# >+# chkconfig: - 98 02 >+# description: Object expirer for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="object" >+subserv="expirer" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-object-expirer.upstart b/openstack-swift-object-expirer.upstart >new file mode 100644 >index 0000000..23f2cbd >--- /dev/null >+++ b/openstack-swift-object-expirer.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Object Expirer" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-object-expirer /etc/swift/object-server.conf" swift >diff --git a/openstack-swift-object-replicator.init b/openstack-swift-object-replicator.init >new file mode 100644 >index 0000000..bd31a5e >--- /dev/null >+++ b/openstack-swift-object-replicator.init >@@ -0,0 +1,80 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-object >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift object replicator >+# Description: Object replicator for swift. >+### END INIT INFO >+ >+# openstack-swift-object: swift object replicator >+# >+# chkconfig: - 98 02 >+# description: Object replicator for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="object" >+subserv="replicator" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-object-replicator.upstart b/openstack-swift-object-replicator.upstart >new file mode 100644 >index 0000000..19c2a60 >--- /dev/null >+++ b/openstack-swift-object-replicator.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Object Replicator" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-object-replicator /etc/swift/object-server.conf" swift >diff --git a/openstack-swift-object-updater.init b/openstack-swift-object-updater.init >new file mode 100644 >index 0000000..6ae8ba8 >--- /dev/null >+++ b/openstack-swift-object-updater.init >@@ -0,0 +1,80 @@ >+#!/bin/sh >+ >+### BEGIN INIT INFO >+# Provides: openstack-swift-object >+# Required-Start: $remote_fs >+# Required-Stop: $remote_fs >+# Default-Stop: 0 1 6 >+# Short-Description: Swift object updater >+# Description: Object updater for swift. >+### END INIT INFO >+ >+# openstack-swift-object: swift object updater >+# >+# chkconfig: - 98 02 >+# description: Object updater for swift. >+ >+. /etc/rc.d/init.d/functions >+. /usr/share/openstack-swift/functions >+ >+name="object" >+subserv="updater" >+ >+[ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" >+ >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" >+ >+start() { >+ swift_action "$name" "$subserv" start >+ retval=$? >+ [ $retval -eq 0 ] && touch $lockfile >+ return $retval >+} >+ >+stop() { >+ swift_action "$name" "$subserv" stop >+ retval=$? >+ [ $retval -eq 0 ] && rm -f $lockfile >+ return $retval >+} >+ >+restart() { >+ stop >+ start >+} >+ >+rh_status() { >+ swift_action "$name" "$subserv" status >+} >+ >+rh_status_q() { >+ rh_status &> /dev/null >+} >+ >+ >+case "$1" in >+ start) >+ rh_status_q && exit 0 >+ $1 >+ ;; >+ stop) >+ rh_status_q || exit 0 >+ $1 >+ ;; >+ restart) >+ $1 >+ ;; >+ reload) >+ ;; >+ status) >+ rh_status >+ ;; >+ condrestart|try-restart) >+ rh_status_q || exit 0 >+ restart >+ ;; >+ *) >+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" >+ exit 2 >+esac >+exit $? >diff --git a/openstack-swift-object-updater.upstart b/openstack-swift-object-updater.upstart >new file mode 100644 >index 0000000..f19dee1 >--- /dev/null >+++ b/openstack-swift-object-updater.upstart >@@ -0,0 +1,8 @@ >+description "OpenStack Object Storage (swift) - Object Updater" >+ >+start on stopped rc RUNLEVEL=[2345] >+stop on runlevel [S016] >+ >+respawn >+ >+exec su -s /bin/sh -c "exec /usr/bin/swift-object-updater /etc/swift/object-server.conf" swift >diff --git a/openstack-swift-object.init b/openstack-swift-object.init >index 0f8c107..78061e4 100644 >--- a/openstack-swift-object.init >+++ b/openstack-swift-object.init >@@ -18,20 +18,21 @@ > . /usr/share/openstack-swift/functions > > name="object" >+subserv="server" > > [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" > >-lockfile="/var/lock/subsys/openstack-swift-object" >+lockfile="/var/lock/subsys/openstack-swift-$name-$subserv" > > start() { >- swift_action "$name" start >+ swift_action "$name" "$subserv" start > retval=$? > [ $retval -eq 0 ] && touch $lockfile > return $retval > } > > stop() { >- swift_action "$name" stop >+ swift_action "$name" "$subserv" stop > retval=$? > [ $retval -eq 0 ] && rm -f $lockfile > return $retval >@@ -43,7 +44,7 @@ restart() { > } > > rh_status() { >- swift_action "$name" status >+ swift_action "$name" "$subserv" status > } > > rh_status_q() { >diff --git a/openstack-swift.spec b/openstack-swift.spec >index 73a42ea..89eb198 100644 >--- a/openstack-swift.spec >+++ b/openstack-swift.spec >@@ -6,7 +6,7 @@ > > Name: openstack-swift > Version: 1.7.4 >-Release: 2%{?dist} >+Release: 2.1%{?dist} > Summary: OpenStack Object Storage (swift) > > Group: Development/Languages >@@ -18,12 +18,32 @@ Source1: %{name}-functions > Source2: %{name}-account.init > Source22: account-server.conf > Source200: %{name}-account.upstart >+Source201: %{name}-account-auditor.upstart >+Source202: %{name}-account-reaper.upstart >+Source203: %{name}-account-replicator.upstart >+Source211: %{name}-account-auditor.init >+Source212: %{name}-account-reaper.init >+Source213: %{name}-account-replicator.init > Source4: %{name}-container.init > Source42: container-server.conf > Source400: %{name}-container.upstart >+Source401: %{name}-container-auditor.upstart >+Source402: %{name}-container-replicator.upstart >+Source403: %{name}-container-updater.upstart >+Source411: %{name}-container-auditor.init >+Source412: %{name}-container-replicator.init >+Source413: %{name}-container-updater.init > Source5: %{name}-object.init > Source52: object-server.conf > Source500: %{name}-object.upstart >+Source501: %{name}-object-auditor.upstart >+Source502: %{name}-object-expirer.upstart >+Source503: %{name}-object-replicator.upstart >+Source504: %{name}-object-updater.upstart >+Source511: %{name}-object-auditor.init >+Source512: %{name}-object-expirer.init >+Source513: %{name}-object-replicator.init >+Source514: %{name}-object-updater.init > Source6: %{name}-proxy.init > Source61: proxy-server.conf > Source600: %{name}-proxy.upstart >@@ -183,13 +203,33 @@ rm -rf %{buildroot} > install -p -D -m 644 %{SOURCE1} %{buildroot}%{_datarootdir}/%{name}/functions > # Install upstart jobs examples > install -p -m 644 %{SOURCE200} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE201} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE202} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE203} %{buildroot}%{_datadir}/%{name} > install -p -m 644 %{SOURCE400} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE401} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE402} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE403} %{buildroot}%{_datadir}/%{name} > install -p -m 644 %{SOURCE500} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE501} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE502} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE503} %{buildroot}%{_datadir}/%{name} >+install -p -m 644 %{SOURCE504} %{buildroot}%{_datadir}/%{name} > install -p -m 644 %{SOURCE600} %{buildroot}%{_datadir}/%{name} > # Init scripts > install -p -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}-account >+install -p -D -m 755 %{SOURCE211} %{buildroot}%{_initrddir}/%{name}-account-auditor >+install -p -D -m 755 %{SOURCE212} %{buildroot}%{_initrddir}/%{name}-account-reaper >+install -p -D -m 755 %{SOURCE213} %{buildroot}%{_initrddir}/%{name}-account-replicator > install -p -D -m 755 %{SOURCE4} %{buildroot}%{_initrddir}/%{name}-container >+install -p -D -m 755 %{SOURCE411} %{buildroot}%{_initrddir}/%{name}-container-auditor >+install -p -D -m 755 %{SOURCE412} %{buildroot}%{_initrddir}/%{name}-container-replicator >+install -p -D -m 755 %{SOURCE413} %{buildroot}%{_initrddir}/%{name}-container-updater > install -p -D -m 755 %{SOURCE5} %{buildroot}%{_initrddir}/%{name}-object >+install -p -D -m 755 %{SOURCE511} %{buildroot}%{_initrddir}/%{name}-object-auditor >+install -p -D -m 755 %{SOURCE512} %{buildroot}%{_initrddir}/%{name}-object-expirer >+install -p -D -m 755 %{SOURCE513} %{buildroot}%{_initrddir}/%{name}-object-replicator >+install -p -D -m 755 %{SOURCE514} %{buildroot}%{_initrddir}/%{name}-object-updater > install -p -D -m 755 %{SOURCE6} %{buildroot}%{_initrddir}/%{name}-proxy > # Remove tests > rm -fr %{buildroot}/%{python_sitelib}/test >@@ -302,7 +342,6 @@ fi > %{_mandir}/man1/swift-recon.1* > %{_mandir}/man1/swift-ring-builder.1* > %dir %{_datarootdir}/%{name}/functions >-%dir %attr(0755, swift, swift) %{_localstatedir}/run/swift > %dir %{_sysconfdir}/swift > %config(noreplace) %attr(660, root, swift) %{_sysconfdir}/swift/swift.conf > %dir %attr(0755, swift, root) %{_localstatedir}/run/swift >@@ -328,9 +367,8 @@ fi > %files account > %defattr(-,root,root,-) > %doc etc/account-server.conf-sample >-%dir %{_initrddir}/%{name}-account >-%{_datadir}/%{name}/%{name}-account.upstart >-%dir %attr(0755, swift, swift) %{_localstatedir}/run/swift/account-server >+%{_initrddir}/%{name}-account* >+%{_datadir}/%{name}/%{name}-account*.upstart > %{_mandir}/man5/account-server.conf.5* > %{_mandir}/man1/swift-account-auditor.1* > %{_mandir}/man1/swift-account-reaper.1* >@@ -348,9 +386,8 @@ fi > %files container > %defattr(-,root,root,-) > %doc etc/container-server.conf-sample >-%dir %{_initrddir}/%{name}-container >-%{_datadir}/%{name}/%{name}-container.upstart >-%dir %attr(0755, swift, swift) %{_localstatedir}/run/swift/container-server >+%{_initrddir}/%{name}-container* >+%{_datadir}/%{name}/%{name}-container*.upstart > %{_mandir}/man5/container-server.conf.5* > %{_mandir}/man1/swift-container-auditor.1* > %{_mandir}/man1/swift-container-replicator.1* >@@ -370,9 +407,8 @@ fi > %files object > %defattr(-,root,root,-) > %doc etc/object-server.conf-sample etc/rsyncd.conf-sample >-%dir %{_initrddir}/%{name}-object >-%{_datadir}/%{name}/%{name}-object.upstart >-%dir %attr(0755, swift, swift) %{_localstatedir}/run/swift/object-server >+%{_initrddir}/%{name}-object* >+%{_datadir}/%{name}/%{name}-object*.upstart > %{_mandir}/man5/object-server.conf.5* > %{_mandir}/man5/object-expirer.conf.5* > %{_mandir}/man1/swift-object-auditor.1* >@@ -396,7 +432,6 @@ fi > %doc etc/proxy-server.conf-sample > %dir %{_initrddir}/%{name}-proxy > %{_datadir}/%{name}/%{name}-proxy.upstart >-%dir %attr(0755, swift, swift) %{_localstatedir}/run/swift/proxy-server > %{_mandir}/man5/proxy-server.conf.5* > %{_mandir}/man1/swift-proxy-server.1* > %dir %{_sysconfdir}/swift/proxy-server >@@ -410,6 +445,10 @@ fi > %doc LICENSE doc/build/html > > %changelog >+* Wed Jan 09 2013 Pete Zaitcev <zaitcev@redhat.com> - 1.7.4-2.1 >+- Add missing Upstart jobs and init scripts for daemons, bz#885530 >+- Drop duplicated /var/run directories from the spec >+ > * Tue Oct 09 2012 Derek Higgins <derekh@redhat.com> - 1.7.4-2 > - removing reference to tmpfiles.d/openstack-swift.conf in packaging > - adding python-swiftclient as a BuildRequires
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 877343
:
676014
|
676015
|
676543
|
700131