File: swift-object.swift-object-replicator.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-- 445 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-object-replicator - SWIFT Object Replicator
#
# The swift object replicator.

description     "SWIFT Object Replicator"
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-replicator start
  else
    exit 1
  fi
end script

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