run script when specific package is updated yum-cron

Latest response

I would like to setup a rule-set where a service (tomee) is restarted when package java-1.8.0-oracle is updated when yum-cron runs every night.

So when yum update -y is executed (by yum-cron or superuser) and package java-1.8.0-oracle is updated then the service tomee1 should be restarted.

Any bright ideas?
Thank you!

Responses