Skip to content

systemd-crontab-generator generates cron.target.wants folder with nothing in it #115

@Beethoven-n

Description

@Beethoven-n

>install systemd-cron
>crontab -e works, how nice!

PERSISTENT=yes
# min hour dom month dow command
  02  09   *   *     *   /usr/bin/redshift -PO 5800 -b 0.7
  30  23   *   *     *   /usr/bin/redshift -PO 5800 -b 0.5
@daily /usr/bin/redshift -PO 5800 -b 0.3

>ok, systemctl status cron-<tab>--
>huh. there's no cron-$USER-$USER-0.timer or cron-$USER-$USER-0.service
>okay, let's sudo systemctl daemon-reload; sudo systemctl daemon-reexec, that'll fix it
>systemctl list-timers --all lists all cron-$schedule.target units, but nothing corresponding to my user
>alright, let's sudo systemctl start cron-update.service
>nothing changes

>manually call /usr/lib/systemd/system-generators/systemd-crontab-generator ./
>get a folder, ./cron.target.wants/, with nothing from my crontab reflected

am i using the program wrong? there are literally no errors telling me anything is going wrong. even the exit code it returns 0, literally nothing is wrong, except for a non-generated timer/service pair

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions