-

CommentStreams:Fcdeb7b6b2faace973886c0324108272

From Geekworm Wiki
Jump to navigation Jump to search

Hello My Raspberry 3B is powered by a X728 board model 1.2 This is why I used the script x728-v1.0.sh to install the scripts I tested both python scripts in my home folder (x728bat.py and x728pld.py) and they work OK Also the command x728off works OK

My question is about CRON! I added the line '@reboot python /home/pi/x728bat.py' (without the single quotes) but nothing happens, i.e. if I disconnect the power and my battery goes low, nothing happens! Checking the CRON status shows I have two jobs running (456 and 458).

● cron.service - Regular background program processing daemon

  Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
  Active: active (running) since Sat 2021-06-26 21:49:50 CEST; 12h ago
    Docs: man:cron(8)
Main PID: 396 (cron)
   Tasks: 4 (limit: 2063)
  CGroup: /system.slice/cron.service
          ├─396 /usr/sbin/cron -f
          ├─428 /usr/sbin/CRON -f
          ├─456 /bin/sh -c python /home/pi/x728bat.py
          └─458 python /home/pi/x728bat.py

Having 2 jobs running is this as expected? When using the x728bat.py script in CRON where are the logs going? Any idea why this is not working within CRON?

Thanks in advance for any help