Created
April 16, 2019 05:30
-
-
Save marzdgzmn/82720c7c5b4be5316dac18948f10e08d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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