deprecate start, stop, restart, daemonize

This commit is contained in:
Jean-Paul Calderone 2020-01-15 14:21:29 -05:00
parent 173a9a5256
commit f134f77f2e
4 changed files with 4 additions and 1 deletions

View File

@ -12,4 +12,5 @@ class DaemonizeOptions(_RunOptions):
subcommand_name = "daemonize" subcommand_name = "daemonize"
def daemonize(config): def daemonize(config):
print("'tahoe daemonize' is deprecated; see 'tahoe run'")
return run(config) return run(config)

View File

@ -9,6 +9,7 @@ class RestartOptions(StartOptions):
def restart(config): def restart(config):
print("'tahoe restart' is deprecated; see 'tahoe run'")
stderr = config.stderr stderr = config.stderr
rc = stop(config) rc = stop(config)
if rc == COULD_NOT_STOP: if rc == COULD_NOT_STOP:

View File

@ -60,7 +60,7 @@ def start(config):
(e.g. "introducer started"). If that doesn't happen within a few (e.g. "introducer started"). If that doesn't happen within a few
seconds, an error is printed along with all collected logs. seconds, an error is printed along with all collected logs.
""" """
print("'tahoe start' is deprecated; see 'tahoe run'")
out = config.stdout out = config.stdout
err = config.stderr err = config.stderr
basedir = config['basedir'] basedir = config['basedir']

View File

@ -21,6 +21,7 @@ class StopOptions(BasedirOptions):
def stop(config): def stop(config):
print("'tahoe stop' is deprecated; see 'tahoe run'")
out = config.stdout out = config.stdout
err = config.stderr err = config.stderr
basedir = config['basedir'] basedir = config['basedir']