<p dir="ltr"><br>
On 21 Mar 2016 09:23, "Alexandre Detiste" <<a href="mailto:alexandre.detiste@gmail.com">alexandre.detiste@gmail.com</a>> wrote:<br>
><br>
> 2016-03-21 12:54 GMT+01:00 Felipe Sateler <<a href="mailto:fsateler@debian.org">fsateler@debian.org</a>>:<br>
> ><br>
> > > [Service]<br>
> > > Type=oneshot<br>
> > > IgnoreSIGPIPE=false<br>
> > > ExecStart=foo<br>
> ><br>
> > Is this the real output from systemd-cron?<br>
><br>
><br>
> No<br>
><br>
> ><br>
> > Then it should be fixed:<br>
> ><br>
> > 1. Exec* need their first argument to be a full path.<br>
> > 2. Exec* are not executed via a shell. IIRC, crontab lines can include<br>
> > shell constructs. Systemd-cron should generate units that use a shell<br>
> > (eg, /bin/sh -c 'foo').<br>
><br>
> If the job is a full path (eg /usr/local/bin/<something>)<br>
> it is started dirtectly without a shell; that also makes<br>
> the journal easier to read.<br>
><br>
> For all other cases; a one-line shell script is generated in /run.<br>
> Translating all possible shell escapes to systemd escapes<br>
> was too much pain/risk.<br></p>
<p dir="ltr">Ok cool. Thanks for explaining.</p>
<p dir="ltr">Saludos</p>