SYNOPSIS

swift-init <server> [<server> ...] <command> [options]

DESCRIPTION

The swift-init tool can be used to initialize all swift daemons available as part of openstack-swift. Instead of calling individual init scripts for each swift daemon, one can just use swift-init. With swift-init you can initialize just one swift service, such as the "proxy", or a combination of them. The tool also allows one to use the keywords such as "all", "main" and "rest" for the <server> argument.

Servers:

proxy
- Initializes the swift proxy daemon
object, object-replicator, object-auditor, object-updater
- Initializes the swift object daemons above
container, container-update, container-replicator, container-auditor
- Initializes the swift container daemons above
account, account-auditor, account-reaper, account-replicator
- Initializes the swift account daemons above
all
- Initializes all the swift daemons
main
- Initializes all the main swift daemons
(proxy, container, account and object servers)
rest
- Initializes all the other swift background daemons
(updater, replicator, auditor, reaper, etc)

Commands:

force-reload: \t\t alias for reload
no-daemon: \t\t start a server interactively
no-wait: \t\t\t spawn server and return immediately
once: \t\t\t start server and run one pass on supporting daemons
reload: \t\t\t graceful shutdown then restart on supporting servers
restart: \t\t\t stops then restarts server
shutdown: \t\t allow current requests to finish on supporting servers
start: \t\t\t starts a server
status: \t\t\t display status of tracked pids for server
stop: \t\t\t stops a server

Options:

-h, --help \t\t\t show this help message and exit
-v, --verbose \t\t\t display verbose output
-w, --no-wait \t\t\t won't wait for server to start before returning
-o, --once \t\t\t only run one pass of daemon
-n, --no-daemon \t\t start server interactively
-g, --graceful \t\t send SIGHUP to supporting servers
-c N, --config-num=N \t send command to the Nth server only
-k N, --kill-wait=N \t wait N seconds for processes to die (default 15)
-r RUN_DIR, --run-dir=RUN_DIR directory where the pids will be stored (default /var/run/swift)

DOCUMENTATION

More documentation about Openstack-Swift can be found at http://swift.openstack.org/index.html