Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2127 from APwhitehat/alreadystarted
Browse files Browse the repository at this point in the history
print something legible if synapse already running
  • Loading branch information
erikjohnston authored Apr 27, 2017
2 parents bb9246e + c1f52a3 commit f87b287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/app/synctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f87b287

Please sign in to comment.