swift-init(1)

πŸ’– NAME πŸ’–

okay so bestie, this is swift-init β€” it's the OpenStack Swift swift-init tool, and she's the one who runs the whole squad of swift daemons for you πŸ’…


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

ngl, swift-init is THE girl for initializing every single swift daemon that ships with OpenStack Swift 🫢. Like, instead of going around calling each individual init script for each daemon one by one (so much work, so not the vibe), you just use swift-init and she handles it. You can init just one swift service β€” say the "proxy" β€” or a whole lil combination of them, your call boo. She also lets you use the keywords "all", "main" and "rest" for the <server> argument, which is iconic behavior fr fr ✨

🌸 Servers 🌸

  • proxy β€” initializes the swift proxy daemon πŸ’œ
  • object, object-replicator, object-auditor, object-updater β€” initializes the swift object daemons listed above πŸ“
  • container, container-update, container-replicator, container-auditor β€” initializes the swift container daemons listed above πŸŽ€
  • account, account-auditor, account-reaper, account-replicator β€” initializes the swift account daemons listed above 🌈
  • all β€” initializes literally all the swift daemons πŸ‘‘
  • main β€” initializes all the main swift daemons (that's proxy, container, account and object servers) ⭐
  • rest β€” initializes all the other swift background daemons (updater, replicator, auditor, reaper, etc) πŸ¦‹

πŸ’… Commands πŸ’…

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

🌟 Options 🌟

  • -h, --help β€” show this help message and exit 🫢
  • -v, --verbose β€” display verbose output
  • -w, --no-wait β€” won't wait for server to start before returning
  • -o, --once β€” only run one pass of daemon
  • -n, --no-daemon β€” start server interactively
  • -g, --graceful β€” send SIGHUP to supporting servers
  • -c N, --config-num=N β€” send command to the Nth server only
  • -k N, --kill-wait=N β€” 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)
  • --strict β€” return non-zero status code if some config is missing. Default mode if server is explicitly named.
  • --non-strict β€” return zero status code even if some config is missing. Default mode if server is one of aliases `all`, `main` or `rest`.
  • --kill-after-timeout β€” kill daemon and all children after kill-wait period.

πŸ“š DOCUMENTATION πŸ“š

More documentation about OpenStack Swift can be found at https://docs.openstack.org/swift/latest/ πŸ’–


and that's the whole page bestie β€” swift-init(1) from OpenStack Swift, Linux, dated 8/26/2011. slay, you're basically a sysadmin now πŸ‘‘βœ¨