~lynxman/ubuntu/oneiric/swift/swift-upstart

« back to all changes in this revision

Viewing changes to debian/swift-account.upstart

  • Committer: Marc Cluet
  • Date: 2011-08-17 17:00:37 UTC
  • Revision ID: marc.cluet@ubuntu.com-20110817170037-xyl4qp1ho038qxp0
 * Added upstart scripts for all swift components
 * Modified debian/rules to install upstart scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# swift-account-server - SWIFT Account Server
 
2
#
 
3
# The swift account server.
 
4
 
 
5
description     "SWIFT Account Server"
 
6
author          "Marc Cluet <marc.cluet@ubuntu.com>"
 
7
 
 
8
start on runlevel [2345]
 
9
stop on runlevel [016]
 
10
 
 
11
pre-start script
 
12
  if [ $(find /etc/swift/account-server/ -type f 2>/dev/null | wc -l) -gt 0 ]; then
 
13
    exec /usr/bin/swift-init account-server start
 
14
  else
 
15
    exit 1
 
16
  fi
 
17
end script
 
18
 
 
19
post-stop exec /usr/bin/swift-init account-server stop
 
20