~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to vivid/etc/init/swift-account.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

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 [ -f "/etc/swift/account-server.conf" ]; 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