Start, Stop and Restart Crond Daemon in Linux開始,停止並重新啟動crond守護進程在Linux

Cron jobs in Linux and its variants such as FreeBSD or CentOS which commonly used on web hosts due to popularity of cPanel web server control panel system, is important time based scheduled tasks and commands that perform various functions such as log rotation, updates checking, system maintenance, file system cleaning, backup, service restart and etc.的CRON工作在Linux及其變種,如FreeBSD的或centos ,其中常用的Web的主機,由於受歡迎程度的cPanel Web伺服器控制面板制度,是非常重要的時間為基礎的計劃任務和命令,履行各項職能,如日誌輪換,更新檢查,系統維修,檔案系統的清潔,備份,重新啟動和服務等。

Cron jobs are managed by a daemon named crond .玉米職位是由一個名為守護進程crond When cron schedules are added, deleted or modified by crontab, any changes are enacted by the crond daemon.當的CRON附表補充,刪除或修改由crontab ,任何的變化,通過由crond守護程序。 Crond daemon runs constantly in the background and checks once a minute to see if any of the scheduled jobs need to be executed. crond守護進程運行在不斷的背景和檢查,一旦一分鐘,看看是否有任何的預定工作需要被處決。 If any, crond will execute the commands.如有的話, crond會執行命令。 If crond process is not running, no cron jobs will be executed.如果crond進程沒有運行,沒有任何的CRON的工作將被處決。

Thus, it’s important to ensure that crond daemon is running and not hanged in the system.因此,它的重要的是要確保crond守護進程正在運行,而不是吊死在系統中。 To manage crond daemon in Linux, we can make use of “service” command.管理crond守護進程在Linux ,我們可以利用“服務”的命令。

To check the status of crond daemon:檢查的地位crond守護進程:

service crond status 服務crond地位

To stop and terminate crond process:停止和終止crond進程:

service crond stop 服務crond停止

To start and run crond daemon:啟動和運行crond守護進程:

service crond start 服務crond啟動

To restart crond service:重新啟動crond服務:

service crond restart 服務crond重新啟動

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 .



2 Responses to “Start, Stop and Restart Crond Daemon in Linux” 2反應“開始,停止並重新啟動crond守護進程在Linux ”

  1. cPanel Update (upcp) Is Already Running Problem » My Digital Life更新的cPanel ( upcp )已經運行的問題»我的數位生活
    December 6th, 2007 00:05 2007年12月6日0時05分
    1

    [...] killing crond process, you will have to start crond daemon again, else all cron jobs won’t run. [ … … ]殺害crond過程中,您將必須開始crond守護進程再次,否則所有的CRON的工作將不會執行。 Get help or contribute tips or tricks at My Digital Life [...]獲得幫助或貢獻的提示或伎倆在我的數字生活[ … … ]

  2. SivaramaKrishnan sivaramakrishnan
    July 3rd, 2008 13:04 2008年7月3日13時04分
    2

    I have cron daemon running and I added an entry using crontab -e command.我的CRON守護進程運行的,我說,文字使用crontab E型指揮。 When the exact time reached, the script that is specified is the crontab did not get executed.當確切的時間達成共識,腳本是指定的是crontab沒有得到執行。

    But, if I restart the cron daemon (using the command /etc/init.d/crond restart) after adding the cron entry (using crontab -e command), then the script gets executed at the specified time.但是,如果我沒有重新啟動的CRON守護進程(使用命令的/ etc / init.d / crond重新啟動)後,加入玉米進入(使用crontab E型指揮) ,然後腳本得到執行,在指定的時間。

    When I looked at the man page of crond, they have clearly mentioned that, it is not required to restart cron daemon everytime the cron entries are updated.當我看到該名男子頁crond ,他們已清楚提到,這是不須重新啟動的CRON daemon在每次的CRON該作品將被更新。 Am not sure whether I need to start the cron daemon with specific parameters so that it does not need to be restarted every time I update the cron entries.不敢肯定我是否需要啟動的CRON守護進程與具體參數,以便它並不需要重新啟動每一次我更新的CRON參賽作品。

    Any help is appreciated.任何幫助表示讚賞。
    Thanks & Regards感謝與問候
    - Siva -濕婆

Leave a Reply離開的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱無評論


Custom Search

New Articles新的條款,

Incoming Search Terms for the Article傳入的搜索條件文章

restart crond 重新啟動crond - - linux crond Linux的crond - - restarting crond 重新啟動crond - - freebsd restart cron FreeBSD的重新啟動的CRON - - restart cron 重新啟動的CRON - - crond crond - - crond restart crond重新啟動 - - restart crontab 重新啟動crontab - - service crond restart 服務crond重新啟動 - - EM Daemon is not running 在守護進程沒有運行 - - crond start crond啟動 - - crond daemon crond守護進程 - - start crond 啟動crond - - restart cron freebsd 重新啟動的CRON的FreeBSD - - crond stop crond停止 - - crontab daemon crontab守護進程 - - how to restart crond 如何重新啟動crond - - restart cron deamon 重新啟動的CRON deamon - - centos restart cron centos重新啟動的CRON - - centos crond centos crond - - start cron daemon 開始的CRON守護進程 - - all 全部 - - crond process crond進程 - - how to start cron daemon 如何啟動的CRON守護進程 - - stop crond 一站式crond - - crond+process crond +進程 - - start cron linux 開始的CRON的Linux - - cron restart 玉米重新啟動 - - linux restart Linux的重新啟動 - - linux start stop Linux的啟動停止 - - starting crond 開始crond - - how to stop crond 如何停止crond - - restart cron centos 重新啟動的CRON centos - - restart a daemon 重新啟動守護進程 - - deamon linux deamon的Linux - - how to restart cron 如何重新啟動的CRON - - restart stopped process in linux 重新啟動停止的進程在Linux - - how to start crond 如何啟動crond - - Restarting cron jobs in linux 重新啟動的CRON工作在Linux - - restart linux 重新啟動的Linux - - how to restart cron daemon 如何重新啟動守護進程的CRON - - service restart linux 服務重新啟動的Linux - - stop start crontab 停止啟動crontab - - centos start cron centos開始的CRON - - crond linux crond的Linux - - configure cron daemon suse 配置的CRON守護進程的SuSE - - how to restart cron in freebsd 如何重新啟動的CRON在FreeBSD上 - - crond for windows crond為Windows - - linux crond startup script Linux的crond啟動腳本 - - start deamon command linux 開始deamon指揮的Linux - -