mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 07:04:59 -05:00
synctl.py: Check if synapse is already running
This commit is contained in:
parent
247c736b9b
commit
c1f52a321d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user