Script Execution at Boot Time with Crontab in FatDog?

versatile 64-bit multi-user Linux distribution

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Script Execution at Boot Time with Crontab in FatDog?

Post by Neo_78 »

Does a remastered FatDog support script execution at boot time using crontab?

For instance:

Code: Select all

#crontab -e
@reboot root /usr/local/bin/start_script.sh

Thanks for your advice!

User avatar
JakeSFR
Posts: 277
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 159 times

Re: Script Execution at Boot Time with Crontab in FatDog?

Post by JakeSFR »

Our Busybox's (v1.27.0) crond doesn't support special times yet, it was added in v1.28.0.
https://github.com/mirror/busybox/commi ... e3a706c016

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: Script Execution at Boot Time with Crontab in FatDog?

Post by Neo_78 »

Thanks @JakeSFR. I think that would be a useful package update for future releases.

Is there an alternative way to load a script at boot time?

user1111

Re: Script Execution at Boot Time with Crontab in FatDog?

Post by user1111 »

For startup : /etc/rc.d/rc.local

To execute at shutdown : /etc/rc.d/rc.local.shutdown

If you want to run a script once X is up and running then use the ~/Startup folder

step
Posts: 550
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 58 times
Been thanked: 198 times
Contact:

Re: Script Execution at Boot Time with Crontab in FatDog?

Post by step »

Adding to rufwoof's list, the /etc/xdg/Startup folder - only the scripts with executable permission will be started. If you want a GUI for this folder as well as for ~/Startup, start Fatdog64 Control Panel then click System > Manage desktop startup programs.

Post Reply

Return to “FatDog64”