ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Anacron Jobs on a CentOS 7 Server

    IT Discussion
    centos centos 7 cron crontab anacron scheduling linux rhel rhel 7
    4
    28
    6.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @matteo nunziati
      last edited by

      @matteo-nunziati said in Anacron Jobs on a CentOS 7 Server:

      I find the folders really useful to collect script I want to run at given time deltas (e.g. backups...) I'm not used to set a crontab line for each job, as I tend to collect jobs on daily or weekly intervals.
      It is a non issue but still a strange default.

      I feel the opposite, Ubuntu seems strange to have two systems that overlap. Why would they do that? Seems very silly. You already have places for things, why have two of them?

      1 Reply Last reply Reply Quote 0
      • matteo nunziatiM
        matteo nunziati
        last edited by

        sorry I've badly worded it.
        In ubuntu/debian they per default schedule cron.{daily,weekly,monthly} in crontab and they run at specific days/weeks.
        anacron is not there. you have to install it. it is not the default, and jumps in only if you install it!

        utente@debian:/etc$ cat crontab
        #/etc/crontab: system-wide crontab
        #Unlike any other crontab you don't have to run the `crontab'
        #command to install the new version when you edit this file
        #and files in /etc/cron.d. These files also have username fields,
        #that none of the other crontabs do.

        SHELL=/bin/sh
        PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

        #m h dom mon dow user command
        17 * * * * root cd / && run-parts --report /etc/cron.hourly
        25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
        47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
        52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

        by default debian is deterministic while centos is fuzzy. while in either case the distro default makes your scripts run, their approach is different.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          I see what you mean, that makes more sense then.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @scottalanmiller
            last edited by gjacobse

            @scottalanmiller said in Anacron Jobs on a CentOS 7 Server:

            I see what you mean, that makes more sense then.

            That Debian setup is designed to crash update servers. Example. Every Debian system on the planet at 5 o'clock on Friday is going to go try to f***ing update.

            matteo nunziatiM 1 Reply Last reply Reply Quote 3
            • JaredBuschJ
              JaredBusch
              last edited by

              Real example, I use Yum-cron.
              Because of the fuzziness I don't wake up every Tuesday morning to 50 emails stating servers of updated

              matteo nunziatiM 1 Reply Last reply Reply Quote 2
              • matteo nunziatiM
                matteo nunziati @JaredBusch
                last edited by

                @JaredBusch well never considered the workload on servers. I don't know how they manage it! maybe not so many use unattended upgraqdes in debian.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • matteo nunziatiM
                  matteo nunziati @JaredBusch
                  last edited by

                  @JaredBusch that's exactly the opposite for me: I prefer a billion of mails to check altogether rather that fuzziness.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @matteo nunziati
                    last edited by

                    @matteo-nunziati said in Anacron Jobs on a CentOS 7 Server:

                    @JaredBusch well never considered the workload on servers. I don't know how they manage it! maybe not so many use unattended upgraqdes in debian.

                    I definitely feel like Ubuntu users don't keep their systems as up to date 😉

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 2 / 2
                    • First post
                      Last post