# swift-object-updater - SWIFT Object Updater
#
# The swift object updater.

description     "SWIFT Object Updater"
author          "Marc Cluet <marc.cluet@ubuntu.com>"

start on runlevel [2345]
stop on runlevel [016]

pre-start script
  if [ -f "/etc/swift/object-server.conf" ]; then
    exec /usr/bin/swift-init object-updater start
  else
    exit 1
  fi
end script

post-stop exec /usr/bin/swift-init object-updater stop

