{"id":6712,"date":"2022-06-30T22:56:32","date_gmt":"2022-06-30T22:56:32","guid":{"rendered":"https:\/\/swiv.com.br\/how-to-check-cron-daemon-status-on-oracle-linux\/"},"modified":"2026-05-27T20:02:29","modified_gmt":"2026-05-27T19:02:29","slug":"how-to-check-cron-daemon-status-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2022\/06\/30\/how-to-check-cron-daemon-status-on-oracle-linux\/","title":{"rendered":"How to check &#8220;cron&#8221; daemon status on Oracle Linux"},"content":{"rendered":"\n<p>Vez ou outra ficamos na d\u00favida se a cron (servi\u00e7o para executar comandos agendados no Linux) est\u00e1 habilitada ou n\u00e3o, e se o seu daemon est\u00e1 em execu\u00e7\u00e3o. Isso \u00e9 muito simples, conforme exemplos abaixo:<\/p>\n\n\n\n<p>Validar se o servi\u00e7o est\u00e1 habilitado:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl is-enabled crond\nenabled\n<\/pre><\/div>\n\n\n<p>Validar se o servi\u00e7o est\u00e1 em execu\u00e7\u00e3o:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl status crond\n\u25cf crond.service - Command Scheduler\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/crond.service; enabled; vendor preset: enabled)\n   Active: active (running) since Thu 2022-06-30 19:31:07 -03; 20min ago\n Main PID: 1952 (crond)\n    Tasks: 1\n   CGroup: \/system.slice\/crond.service\n           \u2514\u25001952 \/usr\/sbin\/crond -n\n \nJun 30 19:31:07 oel7.localdomain systemd&#x5B;1]: Started Command Scheduler.\nJun 30 19:31:08 oel7.localdomain crond&#x5B;1952]: (CRON) INFO (RANDOM_DELAY will be scaled with fa...d.)\nJun 30 19:31:09 oel7.localdomain crond&#x5B;1952]: (CRON) INFO (running with inotify support)\nHint: Some lines were ellipsized, use -l to show in full.\n&#x5B;root@oel7 system]#\n<\/pre><\/div>\n\n\n<p>Desabilitar o servi\u00e7o (para que n\u00e3o suba automaticamente no pr\u00f3ximo boot):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl disable crond\nRemoved symlink \/etc\/systemd\/system\/multi-user.target.wants\/crond.service.\n&#x5B;root@oel7 system]#\n<\/pre><\/div>\n\n\n<p>Habilitando o servi\u00e7o:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl enable crond\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/crond.service to \/usr\/lib\/systemd\/system\/crond.service.\n&#x5B;root@oel7 system]#\n<\/pre><\/div>\n\n\n<p>Baixando o servi\u00e7o e consultando:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl stop crond\n&#x5B;root@oel7 system]# systemctl status crond\n\u25cf crond.service - Command Scheduler\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/crond.service; enabled; vendor preset: enabled)\n   Active: inactive (dead) since Thu 2022-06-30 19:54:17 -03; 9s ago\n  Process: 1952 ExecStart=\/usr\/sbin\/crond -n $CRONDARGS (code=exited, status=0\/SUCCESS)\n Main PID: 1952 (code=exited, status=0\/SUCCESS)\n \nJun 30 19:31:07 oel7.localdomain systemd&#x5B;1]: Started Command Scheduler.\nJun 30 19:31:08 oel7.localdomain crond&#x5B;1952]: (CRON) INFO (RANDOM_DELAY will be scaled with fa...d.)\nJun 30 19:31:09 oel7.localdomain crond&#x5B;1952]: (CRON) INFO (running with inotify support)\nJun 30 19:54:17 oel7.localdomain systemd&#x5B;1]: Stopping Command Scheduler...\nJun 30 19:54:17 oel7.localdomain systemd&#x5B;1]: Stopped Command Scheduler.\nHint: Some lines were ellipsized, use -l to show in full.\n&#x5B;root@oel7 system]#\n<\/pre><\/div>\n\n\n<p>Subindo o servi\u00e7o e consultando:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl start crond\n&#x5B;root@oel7 system]# systemctl status crond\n\u25cf crond.service - Command Scheduler\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/crond.service; enabled; vendor preset: enabled)\n   Active: active (running) since Thu 2022-06-30 19:55:11 -03; 3s ago\n Main PID: 5447 (crond)\n    Tasks: 1\n   CGroup: \/system.slice\/crond.service\n           \u2514\u25005447 \/usr\/sbin\/crond -n\n \nJun 30 19:55:11 oel7.localdomain systemd&#x5B;1]: Started Command Scheduler.\nJun 30 19:55:11 oel7.localdomain crond&#x5B;5447]: (CRON) INFO (RANDOM_DELAY will be scaled with fa...d.)\nJun 30 19:55:11 oel7.localdomain crond&#x5B;5447]: (CRON) INFO (running with inotify support)\nJun 30 19:55:11 oel7.localdomain crond&#x5B;5447]: (CRON) INFO (@reboot jobs will be run at compute...p.)\nHint: Some lines were ellipsized, use -l to show in full.\n<\/pre><\/div>\n\n\n<p>Reiniciando o servi\u00e7o:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 system]# systemctl restart crond\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Vez ou outra ficamos na d\u00favida se a cron (servi\u00e7o para executar comandos agendados no Linux) est\u00e1 habilitada ou n\u00e3o, e se o seu daemon est\u00e1 em execu\u00e7\u00e3o. Isso \u00e9 muito simples, conforme exemplos abaixo: Validar se o servi\u00e7o est\u00e1 habilitado: Validar se o servi\u00e7o est\u00e1 em execu\u00e7\u00e3o: Desabilitar o servi\u00e7o (para que n\u00e3o suba [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6712","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=6712"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6712\/revisions"}],"predecessor-version":[{"id":9037,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6712\/revisions\/9037"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=6712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=6712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=6712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}