Stop before starting when restarting
parent
b57e9f58fd
commit
26fc878944
|
@ -56,8 +56,8 @@ def main():
|
||||||
elif action == "stop":
|
elif action == "stop":
|
||||||
stop()
|
stop()
|
||||||
elif action == "restart":
|
elif action == "restart":
|
||||||
start()
|
|
||||||
stop()
|
stop()
|
||||||
|
start()
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("Usage: %s [start|stop|restart]\n" % (sys.argv[0],))
|
sys.stderr.write("Usage: %s [start|stop|restart]\n" % (sys.argv[0],))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue