Merge lp:~soren/swift/swift-init-force-reload into lp:~hudson-openstack/swift/trunk

Proposed by Soren Hansen
Status: Merged
Approved by: gholt
Approved revision: 58
Merged at revision: 58
Proposed branch: lp:~soren/swift/swift-init-force-reload
Merge into: lp:~hudson-openstack/swift/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
bin/swift-init (+1/-1)
To merge this branch: bzr merge lp:~soren/swift/swift-init-force-reload
Reviewer Review Type Date Requested Status
gholt (community) Approve
Review via email: mp+33150@code.launchpad.net

Commit message

Add "force-reload" option to swift-init.

Description of the change

Debian Policy requires that init scripts accept a "force-reload" option. This patch adds it as an alias for "reload".

To post a comment you must log in.
Revision history for this message
gholt (gholt) wrote :

Cool, thanks!

Revision history for this message
gholt (gholt) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/swift-init'
2--- bin/swift-init 2010-07-19 22:28:24 +0000
3+++ bin/swift-init 2010-08-19 20:06:49 +0000
4@@ -180,7 +180,7 @@
5 for server in servers:
6 do_start(server)
7
8-if command == 'reload':
9+if command == 'reload' or command == 'force-reload':
10 for server in servers:
11 do_stop(server, graceful=True)
12 do_start(server)