f4fc8118626ab5b780e0b14a4a3fbf3f0b99f288
36 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Jenkins
|
1ac9ceb548 | Merge "Add description of server options (all, main, rest) for swift-init help" | ||
|
Mohit Motiani
|
6b6fa69349 |
Add description of server options (all, main, rest) for swift-init help
Running swift-init with -h, --help, or no arguments displays help for the command. The help does not document the 'main', 'all', and 'rest' options. These are documented in the man page. This patch adds all these server options in the help of swift-init. Change-Id: I8e27589912ae72ace14c955e66b86942bc23d9f7 Closes-Bug: #1580722 |
||
|
Tim Burke
|
9890184ea9 |
Turn on H233 and start using print function
As much as anything, I'm just tired of seeing a bunch or piecemeal fixes. Note that we *need* to include from __future__ import print_function in order to support things like print() # Would print "()" (the repr of an empty tuple) otherwise print(foo, end='') # Would SyntaxError print(bar, file=sys.stderr) # Would SyntaxError Change-Id: I8fdf0740e292eb1ee785512d02e8c552781dcae1 |
||
|
Nguyen Hung Phuong
|
59bbe27fb0 |
Fix typos in Swift files
Change-Id: I34e0c9a888127704ac1910e73ddd14e27ebade13 |
||
|
Ondřej Nový
|
3b1591f235 |
swift-init: New option kill-after-timeout
This option send SIGKILL to daemon after kill_wait period. When daemon hangs and doesn't respond to SIGTERM/SIGHUP there is no way to stop it using swift-init now. Classic init scripts in Linux kills hanged process after grace period and this patch add same behaviour. This is most usefull when using "restart" on hanged daemon. Change-Id: I8c932b673a0f51e52132df87ea2f4396f4bba9d8 |
||
|
Alistair Coles
|
e06c874394 |
Improve swift-init usage statement
Clarify the behavior of strict and non-strict options. Define what <server> and <config> specify on the command line. Drive-by fix for missing param in search_tree docstring. Change-Id: I89fff88a088bc73001464b1fa8240e14a61a117d |
||
|
Lisak, Peter
|
7b7c6c5249 |
swift-init return codes
Currently, swift-init returns zero if can't locate config on start. Because of this problem, it is not possible to distinguish if managed to start server. Due to legacy two new complementary options are added. Default is context dependent. --strict returns non-zero if some config is missing (default mode if explicitly named server) --non-strict returns zero even if some config is missing (default mode if alias is used) As a side effect: If some of demanded servers already running it does not try to start unstarted and also returns non-zero (in strict mode). That is still sufficient for the goal of patch. For future improvements LSB status codes should be considered. DocImpact Change-Id: I7750abd4a94875b46f83f4aeee8509388d543c2b |
||
|
Chuck Thier
|
0a122c1575 |
Add targeted config loading to swift-init
This allows an easier and more explicit way to tell swift-init to run on specific servers. For example with an SAIO, this allows you to do something like: swift-init object-server.1 reload to reload just the 1st object server. A more real world example is when you are running separate servers for replication. In this example you might have an object-server/public.conf and object-server/replication.conf. With this change you can do something like: swift-init object-server.replication reload to just reload the replication server. DocImpact Change-Id: I5c6046b5ee28e17dadfc5fc53d1d872d9bb8fe48 |
||
|
ZhiQiang Fan
|
f72704fc82 |
Change OpenStack LLC to Foundation
Change-Id: I7c3df47c31759dbeb3105f8883e2688ada848d58 Closes-bug: #1214176 |
||
|
Chmouel Boudjnah
|
3282e3885c |
Add --run-dir switch to swift-init
- Add ability to specify an alternative run_dir than the default /var/run/swift. - DocImpact Change-Id: I17677588f2c8da563b7fec2dc4fdc52da87126ed |
||
|
gholt
|
4fcbeff22f |
Added override for swift-init's KILL_WAIT
You can now give swift-init a -k N (or --kill-wait N) option to override the default 15 second wait for a process to die after sending it the die signal. This is useful for boxes that are awfully slow for whatever reason. DocImpact Change-Id: I328ec254f6e0ee1cd423c1d062ba4c5331bd8337 |
||
|
John Dickinson
|
1ecf5ebba1 |
updated copyright date for all files
Change-Id: Ifd909d3561c2647770a7e0caa3cd91acd1b4f298 |
||
|
Chmouel Boudjnah
|
36af76fb9d |
Make binaries executables.
Set the excecutable bit on swift-form-signature swift-object-expirer swift-init swift-temp-url binaries. Fixes bug 918430 Change-Id: Iafecf0b542ee8f607e765879edbffa1cb463d3eb |
||
|
David Goetz
|
51ce438f7f | changing /usr/bin/python to /usr/bin/env python | ||
|
Clay Gerrard
|
97e218fd52 | mermged upstream changes | ||
|
Clay Gerrard
|
092608b1c9 | added [options] to command usage | ||
|
Clay Gerrard
|
6766bd371a | wait is on by default | ||
|
Clay Gerrard
|
1f78fae2fc | more tests and cleanup | ||
|
Clay Gerrard
|
bfae3625ef | fixed license dates | ||
|
Clay Gerrard
|
6554c16e0a | merged trunk | ||
|
Clay Gerrard
|
1095f27590 |
Prepare for trunk merge.
Refactored some of the swift_init classes into a new module in swift.common, changed some names. Removed the bin test stuff. Fixed some bugs, added some features. |
||
|
Clay Gerrard
|
37ca9e569a | more tests, still slow going | ||
|
gholt
|
9dd1e2ae84 | Updates to remove _ usage that is not i18n related | ||
|
Anne Gentle
|
8823427161 | Changed copyright notices on py files and the single rst file with a copyright notice | ||
|
Clay Gerrard
|
ef487c65ef | good start on TestSwiftInitClass | ||
|
Clay Gerrard
|
668666c18b | mostly finished SwiftServer tests, needs some cleanup | ||
|
Clay Gerrard
|
cf70f54e87 | finished test_spawn, started test_wait | ||
|
Michael Barton
|
784c7a85b6 | return from do_start early if config file is missing | ||
|
Michael Barton
|
7e41c5fe4e | make swift-init only warn on missing configs | ||
|
Clay Gerrard
|
73210937a3 | made existing tests more literal/readable/useful | ||
|
Clay Gerrard
|
0b380264d7 |
refactored swift-init to be more maintainable, added some features,
help, docs, tests, fixed lp:639710; new bin/test module with examples of how to import files from bin and some stubs for swift-init |
||
|
Soren Hansen
|
51b7e68e75 | Make swift-init support force-reload (required by Debian Policy) | ||
|
Clay Gerrard
|
d8accbde75 | fixed typo in swift-init | ||
|
Clay Gerrard
|
d0fc23ba1d | refactored swift-init.do_start to handle missing config files | ||
|
Michael Barton
|
8ef54b341d | Make swift-init pay attention to $PATH | ||
|
Monty Taylor
|
76e6c6ea6c |
Renamed bin files in the tree so that setup.py install does the same thing
as a deb install. |