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

"Jóhann B. Guðmundsson" johannbg at gmail.com
Thu Oct 23 00:36:59 PDT 2014


On 10/23/2014 07:17 AM, Alexandre Detiste 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.

Not really the general idea is and always has been having people calling 
Exec*=/path/to/my-script instead which contains commandline $foo and a 
proper exit code not for people to have oneliner contests in those Exec* 
lines

JBG


More information about the systemd-devel mailing list