cope with jesse's logger, which lacks --id=VALUE
[hippotat] / hippotatd
index 123943a..cb86c2b 100755 (executable)
--- a/hippotatd
+++ b/hippotatd
@@ -408,8 +408,7 @@ def daemonise():
       pidfile_h.close()
                                                                         
     logger = subprocess.Popen(['logger','-d',
-                               '-t','hippotat(stderr)',
-                               '--id=%d' % mypid,
+                               '-t','hippotat[%d](stderr)' % os.getpid(),
                                '-p',opts.syslogfacility + '.err'],
                               stdin=subprocess.PIPE,
                               stdout=subprocess.DEVNULL,