I'm using systemd to run opendmarc-import periodically. As systemd sets STDIN to /dev/null by default the "<" operator does not work. Also, there currently is no option (afaik) to set STDIN to a file.
http://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardInput=
I added a --input=/path/to/file parameter to address this problem.
I disagree
systemd fail on a fundamental unix design: stdin -> process -> stdout
adding code to every program still does not solve the real problem: systemd
Andreas
I disagree that systemd is the real problem, but here is not the place for this discussion.
I don't know why systemd currently does not support using a file as stdin (or not doing anyhing with stdin at all) but reading a file in Perl really is no problem and can be easily implemented.
Applied for 1.4.0.