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"
def daemonize(config):
print("'tahoe daemonize' is deprecated; see 'tahoe run'")
return run(config)

View File

@ -9,6 +9,7 @@ class RestartOptions(StartOptions):
def restart(config):
print("'tahoe restart' is deprecated; see 'tahoe run'")
stderr = config.stderr
rc = stop(config)
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
seconds, an error is printed along with all collected logs.
"""
print("'tahoe start' is deprecated; see 'tahoe run'")
out = config.stdout
err = config.stderr
basedir = config['basedir']

View File

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