crontab support for @reboot

Moderator: Lillian.W@AST

Post Reply
zainka
Posts: 24
youtube meble na wymiar Warszawa
Joined: Sun Feb 08, 2015 5:46 am

crontab support for @reboot

Post by zainka »

Tried to add an @reboot section to crontab list where I call a certain php script , but it does not seem to be called at reboot as would be expected.. Any known issues or do I need to enable this functionality?

@reboot sections runs when cron server is started, regardless of time.

Any other option for running a script at reboot?
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: crontab support for @reboot

Post by father.mande »

Hi,
zainka wrote:Tried to add an @reboot section to crontab list where I call a certain php script , but it does not seem to be called at reboot as would be expected.. Any known issues or do I need to enable this functionality?
@reboot sections runs when cron server is started, regardless of time.
Any other option for running a script at reboot?
As a lot of basic command in NAS ... crond is an applet of busybox ... so incomplete and not full G.N.U.
Solutions :
1 use the possibility to add your own start_up script at boot in A.D.M.
folder /usr/local/etc/init.d (not cleared by boot)
... this script Sxxx will be executed as usual at boot time as other init script

2 install Entware APKG then cron package to add a second cron task but full G.N.U.
... new cron are started at boot using /opt/etc/init.d/S100cron script; managed using /opt/bin/crontab tool
... if you use standard Entware install ... user are same as in A.D.M.
... if you use alternative install (in fact with separate passwd / group / etc. files BUT reserved for specific usage (isolation)) take attention to access right.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “[Official] For AS50xx/51xx Series”