Files
cookbook-openstack-object-s…/files/default/swift-container-sync.conf.upstart
Alan Meadows 2945ea4a1f Ensure swift-container-sync service is enabled
* The ubuntu cloud packages are missing an upstart config
and /etc/init.d wrapper for the swift-container-sync service.
This adds them if missing on the ubuntu platform so that we can
start this service successfully.
* Ensure the swift-container-sync is enabled and running
when allowed_sync_hosts is defined
* Swauth requires its own separate declaration of
allowed_sync_hosts in the proxy configuration as well

Change-Id: I638d43445edfd1f9519911212942ac8d69d4fff2
2013-11-12 05:09:46 -08:00

20 lines
426 B
Plaintext

# swift-container-sync - SWIFT Container Sync
#
# The swift container sync.
description "SWIFT Container Sync"
author "Sergio Rubio <rubiojr@bvox.net>"
start on runlevel [2345]
stop on runlevel [016]
pre-start script
if [ -f "/etc/swift/container-server.conf" ]; then
exec /usr/bin/swift-init container-sync start
else
exit 1
fi
end script
post-stop exec /usr/bin/swift-init container-sync stop