domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
986 stars 214 forks source link

[Not Important] Dies If Specified Log File Not Exists #317

Closed knightian closed 2 years ago

knightian commented 2 years ago

This isn't a super important issue however I'll document it for anyone wondering why the process might just die.

If you specify a log file location using the --log-file parameter, you need to make sure that the log file exists and is accessible to the user running parsedmarc or the process will just crash and exit not even so much as writing an error to the log file.

So ensure you make sure the log file exists and chown the file to the appropriate user.

Was scratching my head why I could execute the binary straight up just fine but my systemd service was in a restart loop 😅