Bug#818698: does not convert crontabs correctly

Felipe Sateler fsateler at debian.org
Mon Mar 21 12:28:54 GMT 2016


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

Ok cool. Thanks for explaining.

Saludos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160321/9957c29d/attachment-0002.html>


More information about the Pkg-systemd-maintainers mailing list