Something change in latest smart?

Pascal Bleser pascal.bleser at skynet.be
Mon Oct 9 01:06:04 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

> 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
- --
  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
  /\\ <pascal.bleser at skynet.be>       <guru at unixtech.be>
 _\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFKgLsr3NMWliFcXcRAoNxAJ9Zdlhffw67L2CBSHcdj0SDPIwgigCdHhkK
cOnl4OqkpZLUUXC84fuN+i8=
=FW8u
-----END PGP SIGNATURE-----



More information about the Smart mailing list