Removed cron reloading. Looks like modern distros don't require it.

This commit is contained in:
Dave Fallon 2013-09-11 22:19:24 -07:00
parent 8ab5471321
commit cb51632920
3 changed files with 0 additions and 22 deletions

View File

@ -119,12 +119,6 @@ function install_cron() {
sudo install -m0644 "$dl_dir/msm.cron" /etc/cron.d/msm || install_error "Couldn't install cron file" sudo install -m0644 "$dl_dir/msm.cron" /etc/cron.d/msm || install_error "Couldn't install cron file"
} }
# Reloads cron service (if necessary)
function reload_cron() {
# OVERLOAD THIS
install_error "No function defined for reload_cron"
}
# Installs init script into /etc/init.d # Installs init script into /etc/init.d
function install_init() { function install_init() {
install_log "Installing MSM init file" install_log "Installing MSM init file"
@ -160,7 +154,6 @@ function install_msm() {
patch_latest_files patch_latest_files
install_config install_config
install_cron install_cron
reload_cron
install_init install_init
enable_init enable_init
update_msm update_msm

View File

@ -13,16 +13,6 @@ function install_dependencies() {
sudo apt-get install screen rsync zip || install_error "Couldn't install dependencies" sudo apt-get install screen rsync zip || install_error "Couldn't install dependencies"
} }
function reload_cron() {
install_log "Reloading cron service"
hash service 2>/dev/null
if [[ $? == 0 ]]; then
sudo service cron reload
else
sudo /etc/init.d/cron reload
fi
}
function enable_init() { function enable_init() {
install_log "Enabling automatic startup and shutdown" install_log "Enabling automatic startup and shutdown"
hash insserv 2>/dev/null hash insserv 2>/dev/null

View File

@ -12,11 +12,6 @@ function install_dependencies() {
sudo yum install screen rsync zip || install_error "Couldn't install dependencies" sudo yum install screen rsync zip || install_error "Couldn't install dependencies"
} }
function reload_cron() {
install_log "Reloading cron service"
sudo service crond reload
}
function enable_init() { function enable_init() {
install_log "Enabling automatic startup and shutdown" install_log "Enabling automatic startup and shutdown"
sudo chkconfig --add msm sudo chkconfig --add msm