Hi everyone, this is my first post.
I created a job for system update, /etc/cron.d/update:
@daily root /usr/bin/zypper -qn patch -l
@weekly root /usr/bin/zypper -qn up -l
So it installs patches every day and updates every week.
The computer is usually powered off at midnight, so the tasks are not executed at time, they should be lauched in the next day, but they don’t.
At least, patching should run within 15 minutes after boot any day, but it doesn’t. If the computer is on at configured time (I modified it for testing) it runs fine. So cron works but anacron not in this cronie configuration.
Currently the only way to be sure your tasks to be executed is using scripts on cron.{daily,weekly,monthly} folders. I’d really like to have available the old cron-style tasks (more time options) but with certainty they will be executed out of time.
Thanks.
On 2013-03-24 14:06, darkschneider wrote:
>
> Hi everyone, this is my first post.
>
> I created a job for system update, /etc/cron.d/update:
>
> @daily root /usr/bin/zypper -qn patch -l
> @weekly root /usr/bin/zypper -qn up -l
The openSUSE way is to use jobs placed in directories “/etc/cron.daily/”
and “/etc/cron.weekly/”.
Anacron is not installed in openSUSE by default, unless you changed this
yourself. I don’t even know if it will work.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
OK that’s right, I did a “zypper se cronie” and it says that the installed one is software.opensuse.org: but not this another one software.opensuse.org:
So no problem, but the only “ugly” thing IMO about using cron.daily, etc. is that in these cases we use scripts and not really scheduled tasks in the form (* * * * * user command), including the first line #!/bin/bash (a bit ugly for a task), but I suppose is to get used.