Fix startup logging so it provides information at a useful time

This commit is contained in:
Scott Kitterman
2019-08-09 08:58:03 -04:00
parent a337e27f0d
commit 787e25325e
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@
- Install openrc init file for Gentoo and other openrc users - Install openrc init file for Gentoo and other openrc users
- Add support for passing PID file name on command line to make it easier to - Add support for passing PID file name on command line to make it easier to
keep system init and daemon configuration in sync keep system init and daemon configuration in sync
- Fix startup logging so it provides information at a useful time
1.1.0 2019-04-12 1.1.0 2019-04-12
- Add SubDomains option to enable signing for sub-domains (LP: #1811535) - Add SubDomains option to enable signing for sub-domains (LP: #1811535)
+2 -2
View File
@@ -385,10 +385,10 @@ def main():
own_socketfile(milterconfig, socketname) own_socketfile(milterconfig, socketname)
drop_privileges(milterconfig) drop_privileges(milterconfig)
sys.stdout.flush() sys.stdout.flush()
Milter.runmilter(miltername, socketname, 240)
if milterconfig.get('Syslog'): if milterconfig.get('Syslog'):
syslog.syslog('dkimpy-milter started:{0} user:{1}' syslog.syslog('dkimpy-milter starting:{0} user:{1}'
.format(pid, milterconfig.get('UserID'))) .format(pid, milterconfig.get('UserID')))
Milter.runmilter(miltername, socketname, 240)
if __name__ == "__main__": if __name__ == "__main__":
main() main()