Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to program orangepi to auto restart?

Featured Replies

Hello,

 

I'm a lay user, I don't know much about Armbian and networks

 

- On my network I have a router whose default DNS is set to point to an OrangePI 3 lts with Armbian 23.02, where I installed AdGuard (v0.107.52) and created my rules to filter advertisements through URLs that I access through the web browser of any device. It works almost 100% as I would like

- I use a NO-IP DDNS on the router to access the surveillance DVR and I can see the cameras fine on my smartphone.

 

However, when there is a power outage and then it comes back on, there is often some kind of synchronization failure between the router and the OrangePI to access the cameras.

So I need to restart the Orangepi to be able to view them remotely again.

 

I believe it could be something related to the free and dynamic DDNS, or because I needed to disable the router's DHCP and transfer this function to the OrangePI (so that the network device logs could work correctly through AdGuard).

 

I would like to know:

 

1) Is there a way to program the OrangePI to restart itself every X hours?

What program do I need to install (with a tutorial if possible) and how can I configure a script for this?

I tried to find something within armbian-config, I searched on Google, but I couldn't find exactly what I was looking for.

So I want to test if this would solve my problem.

 

2) What is the easiest way to access the OrangePI system files from Windows?

Is it via FTP?

I use PuTTY for remote access, but I don't know much more about it.

 

Thank you

Solved by CryBaby

  • Solution

You could set up a cron job to reboot it every so often. Log in with PuTTY and type

sudo crontab -e

This will open the default crontab in an editor, probably nano. At the end of the file add the line

0 * * * * systemctl reboot

to reboot every hour on the hour. It needs to have a newline at the end, ie. a blank line at the bottom of the file.

man 5 crontab

will tell you more.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.