Page 2 of 2

Re: System Corn Reboot Pi-Star

Posted: Fri Jun 07, 2019 5:16 pm
by VK7HSE
Great! We got there in the end! (03:15 here and my brain isn't working at full speed!)

Sent from my Pixel 2 XL using Tapatalk


Re: System Corn Reboot Pi-Star

Posted: Mon Aug 24, 2020 10:06 am
by g8nsz
I know this has been done to death. However, for some reason, I cannot get this to run:-(. Also, as a supplementary question, despite the Pi not rebooting I lose a number of lines of heard stations on the Dashboard. I have attached screenshot of the Dashboard this morning with only 3 lines showing where I know there were several more last night! Does the software only keep this info for a set time?

My System Cron is also attached. Where have I gone wrong with the line of info or its position? Many thanks.

Re: System Corn Reboot Pi-Star

Posted: Mon Aug 24, 2020 4:32 pm
by AF6VN
Please -- in future do not post screen grabs of TEXT WINDOWS. Just copy&paste the text itself! (If you want, wrap the paste with the "code" marker from the above button bar. It makes it much easier for a someone responding to edit the text.

For example, mine (stock) is:

Code: Select all

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""

# m h dom mon dow user  command
*/5 *   * * *   root    /usr/local/sbin/pistar-upnp.service start > /dev/null 2>&1 &
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 3    * * *   root    mount -o remount,rw / && cd / && run-parts --report /etc/cron.daily
47 3    * * 7   root    mount -o remount,rw / && cd / && run-parts --report /etc/cron.weekly
52 3    1 * *   root    mount -o remount,rw / && cd / && run-parts --report /etc/cron.monthly
That said... Look closely at your addition... compare the output redirection to that of the line directly below it.

Code: Select all

pi-star@pi-star-3b(ro):~$ ls -l /dev/nul
ls: cannot access '/dev/nul': No such file or directory
pi-star@pi-star-3b(ro):~$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Aug 20 12:30 /dev/null
pi-star@pi-star-3b(ro):~$

Re: System Corn Reboot Pi-Star

Posted: Wed Aug 26, 2020 5:16 am
by RC3C
G8NSZ wrote:Where have I gone wrong with the line of info or its position?
I have run this line in Cron file to reboot my PI-Star

Code: Select all

#
# added Reboot PI-STAR at 4:00am on every 5th day of week
# RC3C 05.03.2019 15:11
0 4 * * 5 root /sbin/shutdown -r now
Hope it helps a bit.