diff options
author | Monty Taylor <mordred@inaugust.com> | 2010-07-14 09:58:38 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2010-07-14 09:58:38 -0500 |
commit | 76e6c6ea6c2272b7a5401adeb5c1be1f3badf5b9 (patch) | |
tree | 4b7cd88ba0508e8c4f717a9fd0301aa0965d4867 /bin/swift-object-server | |
parent | 81e79a87c41498cfbbbef2299339fc967a3fba1f (diff) | |
download | swift-76e6c6ea6c2272b7a5401adeb5c1be1f3badf5b9.tar.gz |
Renamed bin files in the tree so that setup.py install does the same thing
as a deb install.
Diffstat (limited to 'bin/swift-object-server')
-rwxr-xr-x | bin/swift-object-server | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/swift-object-server b/bin/swift-object-server new file mode 100755 index 000000000..c0603b96a --- /dev/null +++ b/bin/swift-object-server @@ -0,0 +1,30 @@ +#!/usr/bin/python +# Copyright (c) 2010 OpenStack, LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ConfigParser import ConfigParser +import sys + +from swift.common.wsgi import run_wsgi +from swift.obj.server import ObjectController + +if __name__ == '__main__': + c = ConfigParser() + if not c.read(sys.argv[1]): + print "Unable to read config file." + sys.exit(1) + conf = dict(c.items('object-server')) + run_wsgi(ObjectController, conf, default_port=6000) + |