Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275358 > unrolled thread

restart crontab

Started byBitfox <hi@bitfox.ddns.net>
First post2024-12-07 00:30 +0100
Last post2024-12-07 01:00 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  restart crontab Bitfox <hi@bitfox.ddns.net> - 2024-12-07 00:30 +0100
    Re: restart crontab Greg Wooledge <greg@wooledge.org> - 2024-12-07 00:50 +0100
      Re: restart crontab Bitfox <hi@bitfox.ddns.net> - 2024-12-07 01:00 +0100

#275358 — restart crontab

FromBitfox <hi@bitfox.ddns.net>
Date2024-12-07 00:30 +0100
Subjectrestart crontab
Message-ID<JQPVL-eiAB-1@gated-at.bofh.it>
How can I restart crontab daemon?
I tried "service crontab restart" and "dpkg --list |grep crontab", they 
have no help.

Please help. thanks.

[toc] | [next] | [standalone]


#275361

FromGreg Wooledge <greg@wooledge.org>
Date2024-12-07 00:50 +0100
Message-ID<JQQf8-eiHL-3@gated-at.bofh.it>
In reply to#275358
On Sat, Dec 07, 2024 at 07:20:12 +0800, Bitfox wrote:
> How can I restart crontab daemon?
> I tried "service crontab restart" and "dpkg --list |grep crontab", they have
> no help.

crontab(1) is the name of the command that you use, as a user, to
display or alter your personal crontab.

The daemon (service) that runs your crontab jobs, however, is usually
named "cron".  Or possibly "crond" on some systems.

hobbit:~$ ps -ef | grep cron
root         826       1  0 Dec05 ?        00:00:00 /usr/sbin/cron -f
greg       57136    1769  0 18:44 pts/14   00:00:00 man 1 crontab
greg       57161    1765  0 18:44 pts/13   00:00:00 grep cron

Given that the daemon's name is "cron", the service name is probably
similar.  Let's just take a guess that it's the same:

hobbit:~$ systemctl status cron
● cron.service - Regular background program processing daemon
     Loaded: loaded (/lib/systemd/system/cron.service; enabled; preset: enabled)
     Active: active (running) since Thu 2024-12-05 06:48:41 EST; 1 day 11h ago
       Docs: man:cron(8)
   Main PID: 826 (cron)
      Tasks: 1 (limit: 18737)
     Memory: 10.6M
        CPU: 2.202s
     CGroup: /system.slice/cron.service
             └─826 /usr/sbin/cron -f

Warning: some journal files were not opened due to insufficient permissions.

[toc] | [prev] | [next] | [standalone]


#275365

FromBitfox <hi@bitfox.ddns.net>
Date2024-12-07 01:00 +0100
Message-ID<JQQoN-eiL1-7@gated-at.bofh.it>
In reply to#275361
On 2024-12-07 07:47, Greg Wooledge wrote:
> On Sat, Dec 07, 2024 at 07:20:12 +0800, Bitfox wrote:
>> How can I restart crontab daemon?
>> I tried "service crontab restart" and "dpkg --list |grep crontab", 
>> they have
>> no help.
> 
> crontab(1) is the name of the command that you use, as a user, to
> display or alter your personal crontab.
> 
> The daemon (service) that runs your crontab jobs, however, is usually
> named "cron".  Or possibly "crond" on some systems.
> 
> hobbit:~$ ps -ef | grep cron
> root         826       1  0 Dec05 ?        00:00:00 /usr/sbin/cron -f
> greg       57136    1769  0 18:44 pts/14   00:00:00 man 1 crontab
> greg       57161    1765  0 18:44 pts/13   00:00:00 grep cron
> 
> Given that the daemon's name is "cron", the service name is probably
> similar.  Let's just take a guess that it's the same:
> 

Thanks Greg.

Now it has been working after this command,
sudo systemctl restart cron

Regards.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web