46
by Marc Cluet
* Added upstart scripts for all swift components |
1 |
# swift-container-replicator - SWIFT Container Replicator |
2 |
#
|
|
3 |
# The swift container replicator. |
|
4 |
||
5 |
description "SWIFT Container Replicator" |
|
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/container-server/ -type f 2>/dev/null | wc -l) -gt 0 ]; then |
|
13 |
exec /usr/bin/swift-init container-replicator start |
|
14 |
else |
|
15 |
exit 1 |
|
16 |
fi |
|
17 |
end script |
|
18 |
||
19 |
post-stop exec /usr/bin/swift-init container-replicator stop |
|
20 |