Package Details: systemd-cron 1.5.14-1

Git Clone URL: https://aur.archlinux.org/systemd-cron.git (read-only)
Package Base: systemd-cron
Description: systemd units to run cron scripts
Upstream URL: https://github.com/systemd-cron/systemd-cron
Keywords: cron systemd
Licenses: MIT
Conflicts: cron
Provides: cron
Submitter: dbb
Maintainer: dbb
Last Packager: dbb
Votes: 24
Popularity: 0.000403
First Submitted: 2013-05-27 20:26
Last Updated: 2019-02-07 15:35

Required by (16)

Sources (2)

Latest Comments

1 2 Next › Last »

einalex commented on 2019-02-07 19:53

Works! Thank you so much! :)

dbb commented on 2019-02-07 15:36

@einalex Just updated, try the new version.

einalex commented on 2019-02-07 15:05

@dbb the errors I'm getting are these:

% crontab -e
Traceback (most recent call last): File "/usr/bin/crontab", line 161, in edit with open(cron_file, 'r') as inp: FileNotFoundError: [Errno 2] No such file or directory: '/var/spool/cron/einalex'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/crontab", line 339, in <module> action(cron_file, args) File "/usr/bin/crontab", line 164, in edit if e.errno == os.errno.ENOENT: AttributeError: module 'os' has no attribute 'errno'

% sudo touch /var/spool/cron/einalex

% crontab -e

Traceback (most recent call last): File "/usr/bin/crontab", line 201, in edit prefix=args.user + '.', delete=False) File "/usr/lib/python3.7/tempfile.py", line 547, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type) File "/usr/lib/python3.7/tempfile.py", line 258, in _mkstemp_inner fd = _os.open(file, flags, 0o600) PermissionError: [Errno 13] Permission denied: '/var/spool/cron/einalex.7amp2t42'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/crontab", line 339, in <module> action(cron_file, args) File "/usr/bin/crontab", line 208, in edit if e.errno == os.errno.ENOSPC: AttributeError: module 'os' has no attribute 'errno'

Ownership and permissions:

% ls -l /usr/lib/systemd-cron/crontab_setgid

-rwxr-sr-x 1 root crontab 14K Feb 7 14:57 /usr/lib/systemd-cron/crontab_setgid

% ll /var/spool/cron

drwxrwxr-x 2 root crontab 4.0K Feb 7 14:58 .

dbb commented on 2018-01-30 14:22

@Mind Those changes were incorporated the next day on 2016-03-28. crontab -e is working fine on my system. What errors are you seeing and what are the ownership and permissions on /usr/lib/systemd-cron/crontab_setgid and /var/spool/cron?

Mind commented on 2018-01-30 05:59

@dbb Could you merge the changes mentioned on 2016-03-27? Without them, you can't use crontab -e without permission errors.

dbb commented on 2016-03-28 13:14

@wilbowma Updated with your changes with some slight modifications.

Anonymous comment on 2016-03-27 23:29

I kept running into the permissions errors with `crontab -e` noted in https://github.com/systemd-cron/systemd-cron/issues/44. I made some changes to the PKGBUILD and systemd-cron.install files based on the Debian snippets posted there, and that seems to have resolved them.

https://gist.github.com/wilbowma/99567d558147ae38f461
https://gist.github.com/wilbowma/3e6145c2cd4a29e88cd0

kstep commented on 2015-12-10 18:54

You may want to also try systemd-cron-next (https://aur.archlinux.org/packages/systemd-cron-next/).

It requires rust to compile and still an RC, but generally crontab generator in it should be much more faster.

Yamakaky commented on 2015-02-26 16:12

You should enable all the functionalities, namely: minutely, quarterly, semi_annually and maybe setgid.

Yamakaky commented on 2014-10-02 15:53

(Sorry, I didn't turned on the comments notifications)

Yes, that's it. Maybe it may require to symlink also the .service files, I'm not sure.