f4fc8118626ab5b780e0b14a4a3fbf3f0b99f288
Commit Graph

36 Commits

Author SHA1 Message Date
Jenkins
1ac9ceb548 Merge "Add description of server options (all, main, rest) for swift-init help" 2016年07月08日 23:31:20 +00:00
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 
2016年07月08日 13:53:46 -04:00
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
2016年07月08日 16:19:52 +00:00
Nguyen Hung Phuong
59bbe27fb0 Fix typos in Swift files
Change-Id: I34e0c9a888127704ac1910e73ddd14e27ebade13
2016年03月30日 04:15:23 +00:00
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
2016年01月05日 11:34:03 +01:00
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
2015年11月25日 18:41:11 +00:00
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
2015年11月16日 07:07:11 +01:00
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
2014年05月19日 14:43:50 +00:00
ZhiQiang Fan
f72704fc82 Change OpenStack LLC to Foundation
Change-Id: I7c3df47c31759dbeb3105f8883e2688ada848d58
Closes-bug: #1214176 
2013年09月20日 01:02:31 +08:00
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
2013年01月21日 18:12:17 +01:00
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
2012年12月17日 23:09:07 +00:00
John Dickinson
1ecf5ebba1 updated copyright date for all files
Change-Id: Ifd909d3561c2647770a7e0caa3cd91acd1b4f298
2012年03月19日 13:45:34 -05:00
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
2012年01月18日 16:08:26 -06:00
David Goetz
51ce438f7f changing /usr/bin/python to /usr/bin/env python 2011年03月24日 15:51:44 -07:00
Clay Gerrard
97e218fd52 mermged upstream changes 2011年02月16日 15:00:35 -06:00
Clay Gerrard
092608b1c9 added [options] to command usage 2011年02月16日 14:47:31 -06:00
Clay Gerrard
6766bd371a wait is on by default 2011年02月15日 10:48:22 -06:00
Clay Gerrard
1f78fae2fc more tests and cleanup 2011年02月12日 14:50:24 -06:00
Clay Gerrard
bfae3625ef fixed license dates 2011年02月12日 02:22:01 -06:00
Clay Gerrard
6554c16e0a merged trunk 2011年02月12日 01:55:57 -06:00
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.
2011年02月11日 13:18:19 -06:00
Clay Gerrard
37ca9e569a more tests, still slow going 2011年01月19日 23:43:23 -06:00
gholt
9dd1e2ae84 Updates to remove _ usage that is not i18n related 2011年01月19日 15:21:57 -08:00
Anne Gentle
8823427161 Changed copyright notices on py files and the single rst file with a copyright notice 2011年01月04日 17:34:43 -06:00
Clay Gerrard
ef487c65ef good start on TestSwiftInitClass 2010年12月29日 00:01:30 -06:00
Clay Gerrard
668666c18b mostly finished SwiftServer tests, needs some cleanup 2010年12月09日 01:42:49 -06:00
Clay Gerrard
cf70f54e87 finished test_spawn, started test_wait 2010年12月07日 17:30:04 -06:00
Michael Barton
784c7a85b6 return from do_start early if config file is missing 2010年11月30日 22:33:35 +00:00
Michael Barton
7e41c5fe4e make swift-init only warn on missing configs 2010年11月30日 22:17:05 +00:00
Clay Gerrard
73210937a3 made existing tests more literal/readable/useful 2010年11月18日 16:47:44 -06:00
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
2010年11月17日 17:52:31 -06:00
Soren Hansen
51b7e68e75 Make swift-init support force-reload (required by Debian Policy) 2010年08月19日 22:01:44 +02:00
Clay Gerrard
d8accbde75 fixed typo in swift-init 2010年07月19日 17:28:24 -05:00
Clay Gerrard
d0fc23ba1d refactored swift-init.do_start to handle missing config files 2010年07月19日 15:40:57 -05:00
Michael Barton
8ef54b341d Make swift-init pay attention to $PATH 2010年07月15日 14:44:45 +00:00
Monty Taylor
76e6c6ea6c Renamed bin files in the tree so that setup.py install does the same thing
as a deb install.
2010年07月14日 09:58:38 -05:00