]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
#165: make 'tahoe restart --force' the default behavior: warn but do not stop if...
authorBrian Warner <warner@allmydata.com>
Wed, 25 Feb 2009 04:42:13 +0000 (21:42 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 25 Feb 2009 04:42:13 +0000 (21:42 -0700)
src/allmydata/scripts/startstop_node.py

index d23ad39e9f46c6ded23f707c4e51666dfa638ae9..a6f4e239caa27978f8d04c028e5a546be7ee0163 100644 (file)
@@ -23,9 +23,6 @@ class RestartOptions(BasedirMixin, usage.Options):
         ["basedir", "C", None, "which directory to restart the node in"],
         ]
     optFlags = [
-        ["force", "f", "if the node is not already running, start it "
-         "instead of complaining that you should have used 'start' instead "
-         "of 'restart'"],
         ["profile", "p", "whether to run under the Python profiler, putting results in \"profiling_results.prof\""],
         ["syslog", None, "tell the node to log to syslog, not a file"],
         ]
@@ -178,7 +175,7 @@ def restart(config, stdout, stderr):
     rc = 0
     for basedir in config['basedirs']:
         rc = do_stop(basedir, stdout, stderr) or rc
-    if rc == 2 and config['force']:
+    if rc == 2:
         print >>stderr, "ignoring couldn't-stop"
         rc = 0
     if rc: