Hello!

2012/5/26 Joachim <joachim.banz...@googlemail.com>:
> It doesnt work because redirects are a shell feature and systemd starts
> programs without the help of a shell. So this line
>
> ExecStart=/bin/echo 2 > /tmp/test.txt
>
> would need to be transformed into
>
> ExecStart=/bin/bash -c 'echo 2 > /tmp/test.txt'
>
> untested, but should work.


Thanks - this indeed works. I just tested it.

-- 
With best regards, Peter Lemenkov.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to