Moode Forum
cron not starting service - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: cron not starting service (/showthread.php?tid=6326)



cron not starting service - vikozo - 03-15-2024

Hello

another question

a freshliy bootet Pi
and cron command will not run
only after i write

 sudo /sbin/service cron start

the cron ist active and work and call the scripts


RE: cron not starting service - vikozo - 03-16-2024

$ sudo /sbin/service cron status
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:cron(8)


RE: cron not starting service - vikozo - 03-16-2024

$ sudo /sbin/service cron start
$sudo /sbin/service cron status
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; disabled; vendor preset: enabled)
Active: active (running) since Sat 2024-03-16 16:39:49 CET; 10s ago
Docs: man:cron(8)
Main PID: 2547 (cron)
Tasks: 1 (limit: 1009)
CPU: 15ms
CGroup: /system.slice/cron.service
└─2547 /usr/sbin/cron -f

Mar 16 16:39:49 moOde-sz-rpi3b systemd[1]: Started Regular background program processing daemon.
Mar 16 16:39:49 moOde-sz-rpi3b cron[2547]: (CRON) INFO (pidfile fd = 3)
Mar 16 16:39:49 moOde-sz-rpi3b cron[2547]: (CRON) INFO (Running @reboot jobs)


RE: cron not starting service - philrandal - 03-16-2024

If you need cron,

Code:
sudo systemctl enable cron --now


should do what you need and persist across reboots.

Phil


RE: cron not starting service - vikozo - 03-16-2024

yes it helps, thanks @philrandal
just strange because other task are running - but maybe they do not need cron


RE: cron not starting service - philrandal - 03-18-2024

(03-16-2024, 07:42 PM)vikozo Wrote: yes it helps, thanks @philrandal
just strange because other task are running - but maybe they do not need cron

They possibly use systemd timers instead?