File: swift-container.swift-container-updater.upstart.in

package info (click to toggle)
swift 2.2.0-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 7,652 kB
  • ctags: 8,973
  • sloc: python: 91,651; sh: 668; makefile: 49
file content (20 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# swift-container-updater - SWIFT Container Updater
#
# The swift container updater.

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

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-updater start
  else
    exit 1
  fi
end script

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