Fix startup logging so it provides information at a useful time
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user