[systemd-devel] transforming Iptables bash script to systemd service file -help

Lennart Poettering mztabzr at 0pointer.de
Thu Oct 23 02:44:42 PDT 2014


On Thu, 23.10.14 09:17, Alexandre Detiste (alexandre.detiste at gmail.com) wrote:

> >2014-10-22 13:37 GMT+02:00 Simon McVittie <simon.mcvittie at collabora.co.uk>:
> > all it would need is for systemd to support StandardInput=/a/file/path
> 
> That feature would be nice.
> I have a direct use for this.
> Doing '/bin/echo -e line1\\nline2\\nline3 | command' is ugly.
> 
> https://github.com/systemd-cron/systemd-cron/blob/master/src/bin/systemd-crontab-generator#L229
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html

People have also requested StandardOutput=/some/file. That's something
though I really don't want to support, since it leaves the question of
rotation open.

I guess I'd be willing to merge a patch that adds this for
StandardInput= however. It appears OK to me.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list