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

Commit

Permalink
synctl.py: Check if synapse is already running
Browse files Browse the repository at this point in the history
  • Loading branch information
APwhitehat committed Apr 13, 2017
1 parent 247c736 commit c1f52a3
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 c1f52a3

Please sign in to comment.