From: Vincent Le Gallic Date: Sun, 6 Mar 2016 20:09:00 +0000 (+0100) Subject: Forgot some "basile" X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;ds=sidebyside;h=9ead77f631134f40973a438ab50af5fbc1339482;p=bots%2Fjosh.git Forgot some "basile" --- 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"