mcron missing initial directories?

  • Done
  • quality assurance status badge
Details
4 participants
  • Danny Milosavljevic
  • Efraim Flashner
  • Ludovic Courtès
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 5 years ago
(address . bug-guix@gnu.org)
20200408003503.64a357da@scratchpost.org
$ crontab -e

In unknown file:
0 (copy-file "/tmp/crontab.10313" "/var/cron/tabs/dannym")

ERROR: In procedure copy-file:
In procedure copy-file: No such file or directory

/var/cron doesn't exit either. Maybe we should automatically create /var/cron ?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl6NABcACgkQ5xo1VCww
uqUQQAf/TVgf4fxCH4dfNlgEWfQH1Ju1GuJbR9n7OXwA0iQCsm2knGUWcMI+ZHWh
tt5sYL/n4AkUqCAqbqylfaujTL59mexR4ZELzzWS/u+V4MyXHOzpPHbYV3lZUkGn
+k9vu9l7go5r2yYvcveUoibsoWnVj8hCFvY7LlQ8YiZsT2YPTNuCvqxCbvyq1Fda
imS1nwFow15kd8+Nhj17QeA8m6Gne35udj/SisWarQN7u8HE4+1RS0sq3AyfZ1an
bd3er5ie5pXFxOmL9D7V5KdWsy9T6sRZCoOUY5qUU+9mXwwujZ5RrItz/fh2A/Zu
G39GkIPxP+6+Mnm/S539HvwA+jQBYQ==
=zr/9
-----END PGP SIGNATURE-----


Ludovic Courtès wrote 5 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 40499@debbugs.gnu.org)
874ktu7152.fsf@gnu.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (10 lines)
> $ crontab -e
>
> In unknown file:
> 0 (copy-file "/tmp/crontab.10313" "/var/cron/tabs/dannym")
>
> ERROR: In procedure copy-file:
> In procedure copy-file: No such file or directory
>
> /var/cron doesn't exit either. Maybe we should automatically create /var/cron ?

Yes, this should be done in an activation snippet.

Ludo’.
Efraim Flashner wrote 5 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)
20200409203958.GU1518@E5400
On Wed, Apr 08, 2020 at 11:55:05AM +0200, Ludovic Courtès wrote:
Toggle quote (17 lines)
> Hi Danny,
>
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
> > $ crontab -e
> >
> > In unknown file:
> > 0 (copy-file "/tmp/crontab.10313" "/var/cron/tabs/dannym")
> >
> > ERROR: In procedure copy-file:
> > In procedure copy-file: No such file or directory
> >
> > /var/cron doesn't exit either. Maybe we should automatically create /var/cron ?
>
> Yes, this should be done in an activation snippet.
>

Should this be part of a crontab service or does the mere existence of
the files allow cron tasks to start working?

--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl6PiB4ACgkQQarn3Mo9
g1F83xAAriCP4wsJJCmch9B1P2E6UYZnCvwldFYZDauXkzwsqqW5DhnVQKKmKj9J
Pzz06aiy3hmQiTfaB/0GAalt8NlXHReytXOqS3TPl7c5e3DMQNZl5Y59X0IVQ9ep
LtHDCnTZRVjsfUx+TvTdug46zvPI/jOkGiEwQE6piURSQetKImE+vNrRxh3S1mLO
TNDdijq0qfee5tac107S/xD0kXGlwwv4BGXAiw4wa8hUeTsjCidJf0pjw+FEwPA+
6OU24w7HLcrGM2mK/T9O3cBPM5GjnGnDMFveahWz4B43I86XuqW4B5WCHg7TQ3yY
TyK2iSyJxEGiF5RHo1WCXKg2PzZbRJlfFIPLGj43z0etdKeq4zlXSzCBeyGPeZft
eJ/63gnBJdHivZZUXCx3LbKYQSIOM0+0daY0O+nsonq+hh09YbKknvzV+inAzwD0
h9EW+Q1zKvoxAZZHH+XG5BrU/cL8t9wk4h01OapR6XFpCUUQP7X2C62GzIbmLlhj
hBdQT9KL8enYg1MhwiSchmTLuicfgYtzCfnwFfNMLNco8unAkUgNd6bmDxLb/8mO
m5QLuHgZS80U4UsnzP476PF+I975IZVc8C0MKFYkz3rhkEoKLq4yBRucAPKxBWhP
PJOyxzckpqb1c9cl5Hw8zHSgPqOOJJlz9s7sTu1MoWJwBbyWxE4=
=WEDr
-----END PGP SIGNATURE-----


Ludovic Courtès wrote 5 years ago
(name . Efraim Flashner)(address . efraim@flashner.co.il)
87y2r3yccf.fsf@gnu.org
Hi,

Efraim Flashner <efraim@flashner.co.il> skribis:

Toggle quote (20 lines)
> On Wed, Apr 08, 2020 at 11:55:05AM +0200, Ludovic Courtès wrote:
>> Hi Danny,
>>
>> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>>
>> > $ crontab -e
>> >
>> > In unknown file:
>> > 0 (copy-file "/tmp/crontab.10313" "/var/cron/tabs/dannym")
>> >
>> > ERROR: In procedure copy-file:
>> > In procedure copy-file: No such file or directory
>> >
>> > /var/cron doesn't exit either. Maybe we should automatically create /var/cron ?
>>
>> Yes, this should be done in an activation snippet.
>>
>
> Should this be part of a crontab service

That’s what I had in mind.

Toggle quote (3 lines)
> or does the mere existence of the files allow cron tasks to start
> working?

Good question. Actually I think the crontab compatibility bit is rather
separate in mcron: AIUI, you have to run ‘crond’, not ‘mcron’, if you
want that to get that functionality (info "(mcron) Invoking cron or
crond").

So perhaps all this is moot unless/until we have an mcron-crond service.

Ludo’.
Maxim Cournoyer wrote 4 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)
87k0kbtsd0.fsf@gmail.com
Hello,

Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (36 lines)
> Hi,
>
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
>> On Wed, Apr 08, 2020 at 11:55:05AM +0200, Ludovic Courtès wrote:
>>> Hi Danny,
>>>
>>> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>>>
>>> > $ crontab -e
>>> >
>>> > In unknown file:
>>> > 0 (copy-file "/tmp/crontab.10313" "/var/cron/tabs/dannym")
>>> >
>>> > ERROR: In procedure copy-file:
>>> > In procedure copy-file: No such file or directory
>>> >
>>> > /var/cron doesn't exit either. Maybe we should automatically create /var/cron ?
>>>
>>> Yes, this should be done in an activation snippet.
>>>
>>
>> Should this be part of a crontab service
>
> That’s what I had in mind.
>
>> or does the mere existence of the files allow cron tasks to start
>> working?
>
> Good question. Actually I think the crontab compatibility bit is rather
> separate in mcron: AIUI, you have to run ‘crond’, not ‘mcron’, if you
> want that to get that functionality (info "(mcron) Invoking cron or
> crond").
>
> So perhaps all this is moot unless/until we have an mcron-crond service.

I think so. And since Dale Mellor, the original author of GNU Mcron
advises to keep the crond service per-user rather than for the system
[0], if we want a crond service it seems we should turn ourselves to
Guix Home.

Closing.

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40499@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40499
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help