System Corn Reboot Pi-Star

General support for the Pi-Star System
User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: System Corn Reboot Pi-Star

Post 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

g8nsz
Posts: 19
Joined: Sat Jun 13, 2020 4:28 pm

Re: System Corn Reboot Pi-Star

Post 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.
Attachments
Screenshot 2020-08-24 at 10.52.12 copy.jpg
Screenshot 2020-08-24 at 10.52.12 copy.jpg (180.55 KiB) Viewed 1621 times
Screenshot 2020-08-24 at 10.53.09 copy.jpg
Screenshot 2020-08-24 at 10.53.09 copy.jpg (153.09 KiB) Viewed 1621 times
AF6VN
Posts: 821
Joined: Fri Jul 20, 2018 1:15 am

Re: System Corn Reboot Pi-Star

Post 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):~$

--
AF6VN
Dennis L Bieber
User avatar
RC3C
Posts: 48
Joined: Tue Mar 05, 2019 12:09 pm
Location: Moscow
Contact:

Re: System Corn Reboot Pi-Star

Post 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.
73! Anton aka Tony
EL #2102, EL #53698, DMR #2503041, XLX937-B
Clubs: RC5C, RY3AAL, NMDXC

Image
Image
Post Reply