Command List¶
Invocation¶
Onionspray command line invocation obeys this syntax:
./onionspray [flags] <command> [project]
Flags¶
--local: ignore the presence ofonionspray-workers.confand operate upon local projects; used to administer projects running locally on a machine which might also be running onionbalance.--remote: functionally the same as--localbut denotes remote execution on a worker; used to inhibit recursion and loops amongst worker machines, of A calls B calls A calls B...--no-daemonize: do not fork the main Onionspray process into the background. Note that, even if you decide to manually stop this process later on, both thetorand web proxy daemons will still be running in the background, but can be stopped by unning thestopaction.
Configuration¶
onionspray config [filename]# defaultonions.conf- synonyms: 
conf,configure - parses the config file and sets up and populates the projects
 
- synonyms: 
 onionspray maps projectname ...# or:-afor all- prints which onions correspond to which dns domains
 - for softmap, this list may not show until after 
ob-configandob-start 
onionspray harvest projectname ...# or:-afor all- synonyms: 
onions - prints list of onions used by projects
 
- synonyms: 
 
Onion Generation¶
onionspray genkey- synonyms: 
gen - generate an onion key and stash it in 
secrets 
- synonyms: 
 
Project Status & Debugging¶
onionspray status projectname ...# or:-afor all- active per-project status
 
onionspray ps- do a basic grep for possibly-orphaned processes
 
onionspray debugon projectname ...# or:-afor all- enable verbose tor logs
 
onionspray debugoff projectname ...# or:-afor all- disable verbose tor logs
 
onionspray health-local- synonyms: 
healthcheck-local - local healthcheck, useful for containerized execution (only local
  instances are checked); may give false negatives if Onionspray wasn't
  stopped correctly and has dangling pidfiles, which can be fixed by the
  
cleanaction being run before a start 
- synonyms: 
 
Starting & Stopping Projects¶
onionspray start projectname ...# or:-afor all- start projects
 
onionspray stop projectname ...# or:-afor all- stop projects
 
onionspray restart projectname ...# or:-afor all- synonyms: 
bounce,reload - stop, and restart, projects
 
- synonyms: 
 onionspray nxreload projectname ...# or:-afor all- politely ask NGINX to reload its config files
 
Starting & Stopping Onionbalance¶
onionspray ob-start projectname ...# or:-afor all, if applicable- synonyms:
 
onionspray ob-restart projectname ...# or:-afor all, if applicable- synonyms: 
ob-bounce,ob-reload 
- synonyms: 
 onionspray ob-stop- synonyms:
 
onionspray ob-status- synonyms:
 
Configuring Remote Workers¶
onionspray-workers.conf- if not present, only 
localhostwill be used - if present, contains one hostname per line, no comments
 - the label 
localhostis a hardcoded synonym for local activity - other (remote) systems are accessed via 
ssh,scp&rsync 
- if not present, only 
 onionspray ob-remote-nuke-and-push- synonyms:
 
onionspray ob-nxpush- synonyms:
 
onionspray ob-torpush- synonyms:
 
onionspray ob-spotpush- synonyms:
 
Backing-Up Remote Workers¶
- onionspray 
mirror- synonyms:
 
 - onionspray 
backup- synonyms: