Start, Stop and Restart Crond Daemon in Linux Start, Stop un Restart Crond Daemon 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 darbavietu Linux un tā variantus, piemēram, FreeBSD vai CentOS, ko parasti lieto web hosts dēļ popularitātes cPanel web servera vadības paneli sistēmu, ir svarīgi laiku, pamatojoties regulārus uzdevumus un komandas, kas veic dažādas funkcijas, piemēram, log rotācija, atjauninājumu pārbaude, sistēmas uzturēšana, failu sistēmas tīrīšana, backup, servisa restart utt
Cron jobs are managed by a daemon named crond . Cron darbu vada daemon nosaukts crond. When cron schedules are added, deleted or modified by crontab, any changes are enacted by the crond daemon. Kad cron plāniem pievienot, dzēst vai mainīt crontab jebkādas izmaiņas ieviesusi crond dēmonu. 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 dēmonu darbojas pastāvīgi fona un pārbaudes reizi minūtē, lai noskaidrotu, kādu paredzēts darbavietu nepieciešams izpildīt. If any, crond will execute the commands. Ja tādi ir, crond veiks komandas. If crond process is not running, no cron jobs will be executed. Ja crond process nedarbojas, nav cron vietas tiks izpildīts.
Thus, it's important to ensure that crond daemon is running and not hanged in the system. Tādējādi, ir svarīgi nodrošināt, ka crond daemon darbojas un nav pakārtas sistēmā. To manage crond daemon in Linux, we can make use of “service” command. Lai pārvaldītu crond daemon Linux, mēs varam izmantot "pakalpojuma" komandu.
To check the status of crond daemon: Lai pārbaudītu statusu crond daemon:
service crond status pakalpojumu crond status
To stop and terminate crond process: Pārtraukt un izbeigt crond procesu:
service crond stop pakalpojumu crond stop
To start and run crond daemon: Izveidot un vadīt crond daemon:
service crond start pakalpojumu crond sākums
To restart crond service: Atsākt crond pakalpojumu:
service crond restart pakalpojumu crond restart
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanu var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- How to Restart (Stop or Start) cPanel Service (cpsrvd) via Telnet or SSH Kā Restart (Stop vai uzsākšana) cPanel Service (cpsrvd) caur Telnet vai SSH
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto Shutdown un restart Apache httpd Service Daemon pie Preset Time
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Kā atspējot Linux un Unix Cron Jobs (Crontabula) Email Sending
- How to Terminate or Stop and Restart Explorer.exe Shell in Windows XP and Vista Cleanly and Gracefully Without Reboot PC Kā pārtraukt vai Pārtraukt un Restart Explorer.exe Shell Windows XP un Vista tīri un graciozi Bez Reboot PC
- Fix Hotspot Shield Bandwidth Exceeded, TCP Connect Wait, Auth Failure or Daemon Start Error Fix Hotspot Shield Bandwidth pārsniegts, TCP Connect Paga, Auth atteice vai Daemon Start Kļūda
- cPanel Unable or Cannot Start or Restart POP3 Mail Service cPanel nespēj vai nevar sākt vai atsākt POP3 Mail Service
- cPanel Update (upcp) Is Already Running Problem cPanel Update (upcp) jau Running Problem
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Open, ekstrakts un konvertēšana DAA, ISO, BIN faili Linux ar bezmaksas PowerISO for Linux
- Resume or Restart Windows Vista Indexing Service After Pausing Atsāktu vai restartēt Windows Vista Indexing Service Pēc pauzes
- USB Safely Remove 4.0 Free License Code for One-Click Stop, Remount, Real Device Name and Fix Cannot Stop Error USB Droši Noņemt 4,0 Free License kods One-Click Stop, rezerves zirgs, Real Ierīces nosaukums un Fix Can't Stop Error










































July 3rd, 2008 13:04 3 jūlijs 2008 13:04
I have cron daemon running and I added an entry using crontab -e command. Man ir Cron daemon darbojas, un es pievieno ierakstu, izmantojot crontab-e komandu. When the exact time reached, the script that is specified is the crontab did not get executed. Kad precīzu laiku sasniegts, skriptu, kas ir norādīts ir crontab nesaņēma izpildīts.
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. Bet, ja es restart cron dēmons (izmantojot komandu / etc / init.d / crond restart) pēc pievienošanas cron ieraksts (izmantojot crontab-e komandu), tad skripts izpaužas izpilda noteiktajā laikā.
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. Kad es paskatījās vīrietis lapā crond, tās ir skaidri norādījusi, ka tas nav nepieciešams restartēt Cron daemon everytime cron ieraksti tiek atjauninātas. 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. Neesmu pārliecināts, vai man ir jāsāk Cron daemon ar īpašiem rādītājiem, lai tādējādi, ka tas nav nepieciešams atsākt katru reizi, kad es mainīšu Cron ieraksti.
Any help is appreciated. Any help is appreciated.
Thanks & Regards Thanks & Regards
- Siva - Siva
December 6th, 2007 00:05 6 decembris 2007 00:05
[...] killing crond process, you will have to start crond daemon again, else all cron jobs won't run. [...] Nogalināšana crond process, jums būs jāsāk crond dēmons atkal, citādi visas cron darba nedarbosies. Get help or contribute tips or tricks at My Digital Life [...] Saņemtu palīdzību vai veicina padomus vai triku pie Mana Digital Life [...]