Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


cron not starting service
#1
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
Raspberry Pi3B+ --> HiFiBerry DAC+ PRO --> Cyrus | Pre - Pre Amplifier --> D. Klimo | Kent monoblocks --> Piega | Piega LDR 8.2
Raspberry Pi3B+ --> HiFiBerry AMP2 --> Visaton FRS 8 30W 4Ω
Reply
#2
$ 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)
Raspberry Pi3B+ --> HiFiBerry DAC+ PRO --> Cyrus | Pre - Pre Amplifier --> D. Klimo | Kent monoblocks --> Piega | Piega LDR 8.2
Raspberry Pi3B+ --> HiFiBerry AMP2 --> Visaton FRS 8 30W 4Ω
Reply
#3
$ 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)
Raspberry Pi3B+ --> HiFiBerry DAC+ PRO --> Cyrus | Pre - Pre Amplifier --> D. Klimo | Kent monoblocks --> Piega | Piega LDR 8.2
Raspberry Pi3B+ --> HiFiBerry AMP2 --> Visaton FRS 8 30W 4Ω
Reply
#4
If you need cron,

Code:
sudo systemctl enable cron --now


should do what you need and persist across reboots.

Phil

Reply
#5
yes it helps, thanks @philrandal
just strange because other task are running - but maybe they do not need cron
Raspberry Pi3B+ --> HiFiBerry DAC+ PRO --> Cyrus | Pre - Pre Amplifier --> D. Klimo | Kent monoblocks --> Piega | Piega LDR 8.2
Raspberry Pi3B+ --> HiFiBerry AMP2 --> Visaton FRS 8 30W 4Ω
Reply
#6
(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?

Reply


Forum Jump: