Merge pull request #2127 from APwhitehat/alreadystarted

print something legible if synapse already running
pull/2180/head
Erik Johnston 2017-04-27 15:46:53 +01:00 committed by GitHub
commit f87b287291
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,9 @@ def main():
if action == "start" or action == "restart":
if start_stop_synapse:
# Check if synapse is already running
if os.path.exists(pidfile) and pid_running(int(open(pidfile).read())):
abort("synapse.app.homeserver already running")
start(configfile)
for worker in workers: