mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 18:06:46 +00:00
deprecate start, stop, restart, daemonize
This commit is contained in:
parent
173a9a5256
commit
f134f77f2e
@ -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)
|
||||||
|
@ -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:
|
||||||
|
@ -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']
|
||||||
|
@ -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']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user