X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fjosh.git;a=blobdiff_plain;f=josh.py;fp=josh.py;h=02ba1f0ad6a2579dabadd1375d1ea4f28499e380;hp=a96aa257483cd3922fe1bdf48a09d9f62cfb5578;hb=9ead77f631134f40973a438ab50af5fbc1339482;hpb=60d7d94a41f8fe192799a13354517ad618ce5de6 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"