Till now I organized my non-crontab cron-jobs by cron.d in Debian-LAMP environment.

My cron-jobs use me to upgrade CMSs containing my web applications.

Here's how I do it from the beginning:


cat <<-EOF > /etc/cron.daily/cron_daily
    for dir in ${drt}/*/; do
        if pushd "$dir"; then
                composer update drupal/* webflo/drupal-core-require-dev --with-dependencies
                drush updatedb
                drush cache:rebuild
    done 2> $HOME/myErrors

cat <<-EOF > /etc/cron.weekly/cron_weekly
    find "$drt" -path "*/cache/*" -type f -delete
    certbot renew -q

chmod +x /etc/cron{.daily,.weekly}

My question

I consider to start using Arch instead Debian.

I checked the Arch cron documentation about using cron.d but it's not clear to me if cron.d is a native part of Arch and if not, how to install it.

Is cron.d a part of Arch and if not, how to install it?


The /etc/cron.daily will be available after installing cronie package, it is not pre-installed:

pacman -S cronie

The default system scheduled jobs in arch linux is managed through systemd.timer. To list the timer units :

systemctl list-timers
  • Hi GAD3R. Would you recommend to go with the default systemd.timer for best stability? – JohnDoea Jan 19 at 19:53
  • @JohnDoea To use systemd.timer you need to create a service and the timer , some information on Arch-linux docs : As a cron replacement. – GAD3R Jan 19 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.