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
System Corn Reboot Pi-Star
Re: System Corn Reboot Pi-Star
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.
My System Cron is also attached. Where have I gone wrong with the line of info or its position? Many thanks.
- Attachments
-
- Screenshot 2020-08-24 at 10.52.12 copy.jpg (180.55 KiB) Viewed 1634 times
-
- Screenshot 2020-08-24 at 10.53.09 copy.jpg (153.09 KiB) Viewed 1634 times
Re: System Corn Reboot Pi-Star
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:
That said... Look closely at your addition... compare the output redirection to that of the line directly below it.
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
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):~$
--
AF6VN
Dennis L Bieber
Re: System Corn Reboot Pi-Star
I have run this line in Cron file to reboot my PI-StarG8NSZ wrote:Where have I gone wrong with the line of info or its position?
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
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC