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.

(SOLVED)Not runnig cron, fstab or any other script at boot

Featured Replies

So, I've installed Armbian_23.02.2_Orangepizero2_bullseye_legacy_4.9.318.img on 2 diferent SD cards with same results, I'm not able to figure why they don't run fstab, cron jobs or any other script automatically. I'm mounting a samba share, by command it mounts correctly, this is my fstab entry:

 

//192.168.1.2/Descargas /mnt/Descargas/ cifs uid=1000,gid=1000,guest 0 0

 

tried _netdev to wait for network and then mount with the same results

 

//192.168.1.2/Descargas /mnt/Descargas/ cifs uid=1000,gid=1000,guest, _netdev 0 0

 

If I run mount -a it works, tried to add it into root crontab with 

* * * * /bin/mount -a

 

Still, no results, even schedule reboot doesn't work

30 5 * * * /sbin/shutdown -r

 

I even tried to make an executable script on /etc/network/if-up.d with mount -a on it that was supposed to run after network is up but nothing.

 

I'm no linux expert but not a total newbie either, this has me really stressed, I don´t know if my OS doesn't run any auto script or what is going on, I even tried Armbian_23.02.2_Orangepizero2_jammy_legacy_4.9.318.img today but it doesn´t start, my Opi Zero 2 LED doesn´t turn on even after 20 minutes.

 

Any help or right direction will be apreciated. Thanks in advance

 

Best regards

 

SOLUTION: I had to add sudo before cron commands, I feel so stupid right now, I'm leaving this here if it helps someone

30 5 * * * sudo /sbin/shutdown -r
* * * * * sudo /bin/mount -a

 

Edited by JoseMartin
Solved

  • JoseMartin changed the title to (SOLVED)Not runnig cron, fstab or any other script at boot

I used this version  Armbian 23.02.0-trunk Bullseye with Linux 5.15.90-flippy-81+o.

I solved the crontab problem by this way.

1. create a file under the folder /etc/cron.d/ , such as [ vi /etc/cron.d/rebootvms ]

2. write the crontab job, such as [ 1 1 * * *   root    /usr/sbin/reboot ]

3. restart the crontab service, [  service crontab restart ]

done!

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.