Skip to content

Commit db1dade

Browse files
committed
When a pidfile is detected, the network is considered running.
However, when simulaqron is terminated in a non-normal way, that pidfile will not be removed. This fix tells the user where the pidfile is, so he can remove it in case he's sure the network is not running. Fixes #242
1 parent 4aed708 commit db1dade

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

simulaqron/SimulaQron.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def start(name, nrnodes, nodes, topology, force, keep):
136136
pidfile = os.path.join(PID_FOLDER, "simulaqron_network_{}.pid".format(name))
137137
if os.path.exists(pidfile):
138138
logging.warning("Network with name {} is already running".format(name))
139+
logging.warning("The pidfile for this network is located at {}".format(pidfile))
139140
return
140141
if new:
141142
if not force:

0 commit comments

Comments
 (0)