Something change in latest smart?
Basil Chupin
blchupin at tpg.com.au
Mon Oct 9 01:28:34 PDT 2006
Pascal Bleser wrote:
> Basil Chupin wrote:
>> smart used to automatically update the channels on bootup and then do so
>> again regularly while the system was running.
>
> No, smart never did that.
> How do you mean ?
>
> When you have ksmarttray running, yes, then it will do so in the
> background and give you a notification when there are new packages.
> But it never did without ksmarttray running.
Ah, OK, I didn't know that ksmarttray 'controlled' it all in which case
I would have asked if something in ksmarttray had changed because the
auto-update does not occur anymore.
I've had ksmarttray activated from the beginning (it never occurred to
me not to activate it :-) ) and the auto-updates have been done as I
describe in my original post, but since the upgrade of smart this has
stopped.
Just before I posted my message I saw that ksmarttray was showing that
no interesting upgrades were available and to check this I manually used
smart manager to update the channels. This showed that there several
packages to be upgraded.
If nothing has changes in the latest ugrade of smart then is there
something I need to check on my system to see if nothing got corrupted
to stop this auto-updating from being done?
>> Since the latest upgrade of smart in the last couple of days or so this
>> auto-updating appears to have disappeared.
>
> Nothing changed in ksmarttray since quite a while.
>
>> Is this the case or is it simply my imagination or is the auto-updating
>> now controlled by some parameter? Anyone know, please?
>
> If you really want that to happen in the background and not through
> ksmarttray, you could do a cronjob for smart.
> But you won't get any notifications.
>
> To update the channels every hour:
>
> $ cat<<EOF /etc/cron.hourly/smart-update.sh
> #!/bin/bash
> /usr/bin/smart update >/dev/null
> EOF
> $ chmod +x /etc/cron.hourly/smart-update.sh
>
> If you want it to run e.g. every 4 hours, do the same but change the
> "/usr/bin/smart" line to this:
> /usr/bin/smart update --after=240 >/dev/null
> (240 = 60min * 4 = 4 hours)
>
> That way it will run every hour but only do the "update" if the last
> successful "update" was over 4 hours ago.
>
> cheers
Thanks for this Pacal, but I would rather leave smart to do it as
programmed rather than fiddle with cronjob :-) .
Cheers.
--
"Every burned book enlightens the world."
Ralph Waldo Emerson
More information about the Smart
mailing list