Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created April 16, 2019 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzdgzmn/82720c7c5b4be5316dac18948f10e08d to your computer and use it in GitHub Desktop.
Save marzdgzmn/82720c7c5b4be5316dac18948f10e08d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Only run if this flag is set. The flag is created by the yum-cron init
# script when the service is started -- this allows one to use chkconfig and
# the standard "service stop|start" commands to enable or disable yum-cron.
if [[ ! -f /var/lock/subsys/yum-cron ]]; then
exit 0
fi
# Action!
exec /usr/sbin/yum-cron /etc/yum/yum-cron.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment