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?
crontab support for @reboot
Moderator: Lillian.W@AST
-
- Posts: 24
- youtube meble na wymiar Warszawa
- Joined: Sun Feb 08, 2015 5:46 am
- father.mande
- Posts: 1817
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: crontab support for @reboot
Hi,
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.
As a lot of basic command in NAS ... crond is an applet of busybox ... so incomplete and not full G.N.U.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?
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