Skip to content

Commit

Permalink
clarify reread and update
Browse files Browse the repository at this point in the history
  • Loading branch information
hhsue-zz committed Mar 31, 2017
1 parent 414cbec commit e013856
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions docs/running.rst
Expand Up @@ -243,11 +243,11 @@ add <name> [...]

remove <name> [...]

Removes process/group from active confi
Removes process/group from active config

update

Reload config and add/remove as necessary
Reload config and then add and remove as necessary (restarts programs)

clear <name>

Expand Down Expand Up @@ -278,6 +278,10 @@ pid all

Get the PID of every child process, one per line.

reread

Reload the daemon's configuration files, without add/remove (no restarts)

restart <name>

Restart a process
Expand Down
6 changes: 3 additions & 3 deletions supervisor/supervisorctl.py
Expand Up @@ -1086,7 +1086,7 @@ def handle_error(self, message=None, fatal=False, code=None):
self.ctl.handle_error(message=message, fatal=fatal, code=code)

def help_reread(self):
self.ctl.output("reread \t\t\tReload the daemon's configuration files")
self.ctl.output("reread \t\t\tReload the daemon's configuration files without add and remove")

def do_add(self, arg):
names = arg.split()
Expand Down Expand Up @@ -1199,8 +1199,8 @@ def log(name, message):
log(gname, "added process group")

def help_update(self):
self.ctl.output("update\t\t\tReload config and add/remove as necessary")
self.ctl.output("update all\t\tReload config and add/remove as necessary")
self.ctl.output("update\t\t\tReload config and add and remove as necessary, and will restart affected programs")
self.ctl.output("update all\t\tReload config and add and remove as necessary, and will restart affected programs")
self.ctl.output("update <gname> [...]\tUpdate specific groups")

def _clearresult(self, result):
Expand Down

0 comments on commit e013856

Please sign in to comment.