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

print something legible if synapse already running #2127

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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