Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: beast on June 10, 2015, 06:56:10 PM

Title: Yum-cron on SME?
Post by: beast on June 10, 2015, 06:56:10 PM
Hi

Have installed yum-cron with no problems as seen here:

https://linuxaria.com/pills/enabling-automatic-updates-in-centos-6-and-red-hat-6

But it does not seam to run/update automatically

This may be because the way to install a cron job is different on SME then what the guide specify.

Have anybody installed this and does it work?

Title: Re: Yum-cron on SME?
Post by: ReetP on June 10, 2015, 07:31:30 PM
Hi

Have installed yum-cron with no problems as seen here:

https://linuxaria.com/pills/enabling-automatic-updates-in-centos-6-and-red-hat-6

But it does not seam to run/update automatically

This may be because the way to install a cron job is different on SME then what the guide specify.

Have anybody installed this and does it work?

1. Why ?
2. I think you already know that SME uses templates to generate config files so have you checked what you have done properly ?
3. Remember that SME uses a modified rc.d structure so normal chkconfig won't necessarily work
4. What are you going to do if you need a post-upgrade/reboot ?
5. Why... again :-)

This may be ok for a desktop, but not good practice for servers.

If you had a lot to manage I did compile pdsh which will run the same command to multiple machines via ssh...
still not good practice but could be handy. Got some rpms somewhere if any one is interested.

The possibilty of downloading updates without installing sounds sensible.

Sorry to sound a bit harsh but this isn't a good idea.

B. Rgds
John
Title: Re: Yum-cron on SME?
Post by: beast on June 11, 2015, 06:44:59 AM
I know about the "problems" with the SME construction and is just making some experiments

The reason I do this is that I have a backup affa server that is only running aprox 30 minutes during the night.

WOL does not work apparently and I need to install updates somehow.

Currently I have to climb to the addict turn on the server go down to the office and start a terminal send shutdown -c and then install updates. Because of my lazy attitude to life this does not happen so often ;-)

May also be possible to achieve what I like in a script. E.g. 'yum -y update' and then the rest of the needed commands like post-upgrade/reboot? and install it via crontab -e

NB: I like to shut the backup server down to save on the power bill
Title: Re: Yum-cron on SME?
Post by: ReetP on June 11, 2015, 07:23:54 AM
Haha.. best excuse I have heard in a while..... !

What about attacking real issue... remote booting the machine ?

Either get a working WOL card or a remote power switch ? I'd get something cheap off ebay....

Probably a much better solution and will save you lots of legwork :-)

B. Rgds
John