From 9ead77f631134f40973a438ab50af5fbc1339482 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sun, 6 Mar 2016 21:09:00 +0100 Subject: [PATCH] Forgot some "basile" --- josh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/josh.py b/josh.py index a96aa25..02ba1f0 100755 --- a/josh.py +++ b/josh.py @@ -442,7 +442,7 @@ class Josh(ircbot.SingleServerIRCBot): class Logger(object): """Pour écrire ailleurs que sur stdout""" - def __init__(self, filename="basile.full.log"): + def __init__(self, filename="josh.full.log"): self.filename = filename def write(self, message): @@ -491,14 +491,14 @@ def main(): josh = Josh(serveur,debug) # Si on reçoit un SIGHUP, on reload la config def sighup_handler(signum, frame): - basile.execute_reload(auteur="SIGHUP") + josh.execute_reload(auteur="SIGHUP") signal.signal(signal.SIGHUP, sighup_handler) # Daemonization if daemon: child_pid = os.fork() if child_pid == 0: os.setsid() - basile.start_as_daemon(outfile) + josh.start_as_daemon(outfile) else: # on enregistre le pid du bot pidfile = "/var/run/bots/josh.pid" -- 2.39.2