Hướng dẫn start restart hoặc stop crond service trên linux
Nếu bạn đang sử dụng Redhat (RHEL)/Fedora/CentOS Linux bạn có thể thực hiện các lệnh dưới đây để start/ stop/ restart crontab có hiệu lực:
Lệnh start cron service:
# /etc/init.d/crond startTrên RHEL/CentOS 5.x/6.x sử dụng:
# service crond startTrên RHEL/Centos Linux 7.x dùng:
# systemctl start crond.serviceLệnh Stop cron service
# /etc/init.d/crond stopTrên RHEL/CentOS 5.x/6.x sử dụng lệnh:
# service crond stopTrên RHEL/Centos Linux 7.x dùng lệnh :
# systemctl stop crond.serviceLệnh Restart cron service
# /etc/init.d/crond restart
Trên RHEL/CentOS 5.x/6.x ta dùng:
# service crond restartTrên RHEL/Centos Linux 7.x ta dùng:
# systemctl restart crond.service