mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
control: log the name of the PID file on shutdown
(cherry picked from commit d57e141fbc
)
This commit is contained in:
parent
b4ef0d1b16
commit
b90da19dfa
@ -25,11 +25,12 @@ def _print_remaining_threads():
|
|||||||
|
|
||||||
def _remove_pid():
|
def _remove_pid():
|
||||||
# Remove our pid file.
|
# Remove our pid file.
|
||||||
log.info("Removing our pid file.")
|
pidfile = "%s.pid" % conf.confname
|
||||||
|
log.info("Removing PID file %r.", pidfile)
|
||||||
try:
|
try:
|
||||||
os.remove("%s.pid" % conf.confname)
|
os.remove(pidfile)
|
||||||
except OSError:
|
except OSError:
|
||||||
log.exception("Failed to remove PID, ignoring...")
|
log.exception("Failed to remove PID file %r, ignoring..." % pidfile)
|
||||||
|
|
||||||
def _kill_plugins(irc=None):
|
def _kill_plugins(irc=None):
|
||||||
log.info("Shutting down plugins.")
|
log.info("Shutting down plugins.")
|
||||||
|
Loading…
Reference in New Issue
Block a user