crontab
crontab log
Redhat (RHEL)/Fedora Core/Cent OS Linux.
# /etc/init.d/crond start|stop|restart|reload
# /etc/rc.d/init.d/crond start
Debian or Ubuntu Linux.
$ sudo /etc/init.d/cron start|stop|restart|reload
$ sudo service cron start
start the service at boot time so that job can run w/o problems.
Redhat (RHEL)/Fedora Core/Cent OS Linux:
# chkconfig crond on
Debian or Ubuntu Linux:
$ sudo rcconf
$ sudo update-rc.d cron defaults
man service
service --status-all
sudo service SCRIPT COMMAND [OPTIONS]
sudo service cron start
The SCRIPT parameter specifies a System V init script, located in
/etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init
script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the
script is run twice, first with the stop command, then with the start
command.
/etc/init.d containing System V init scripts.
rails whenever
本文详细介绍了如何在Redhat(RHEL)/FedoraCore/CentOSLinux及DebianorUbuntuLinux环境下配置和管理Cron任务,包括启动、停止、重启和重新加载服务,以及设置定时任务在系统启动时自动运行,确保任务执行无误。

430

被折叠的 条评论
为什么被折叠?



