Koozali.org: home of the SME Server

Yum-cron on SME?

Offline beast

  • *
  • 245
  • +0/-0
Yum-cron on SME?
« 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?


Offline ReetP

  • *
  • 3,732
  • +5/-0
Re: Yum-cron on SME?
« Reply #1 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Yum-cron on SME?
« Reply #2 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

Offline ReetP

  • *
  • 3,732
  • +5/-0
Re: Yum-cron on SME?
« Reply #3 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation