puppet-swift/files/swift-container-sync.conf.upstart
Sergio Rubio 403a88a05f Manage missing Swift storage server services
Before this fix the following services where missing:

    root@swift-storage-01:~# swift-init status all|grep ^No
    No container-updater running
    No account-auditor running
    No object-auditor running
    No object-expirer running
    No container-auditor running
    No account-reaper running
    No container-sync running
    No object-updater running

After this commit:

    root@swift-storage-01:/etc/init# swift-init status all|grep ^No
    No proxy-server running
    No object-expirer running

It's OK for the proxy-server to be stopped since it's a storage
.
You only need to manage one object-expirer per cluster, so this not

place to manage it either. See:

http://docs.openstack.org/developer/swift/overview_expiring_objects.html
2012-09-20 11:10:18 +02:00

21 lines
427 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