0

Please can any one help me with a script to restart apache2 at boot on ubuntu 10.04. I have tried so many tutorials but never worked and I tried crontab -e but is there any other way? because it only restart after boot. thank you.

RichK
  • 1

1 Answers1

0

If i understood correctly, you want some delay time before restarting apache2.
If so, add this to crontab:

# On boot wait 20 seconds and restart apache2 service
@reboot sleep 20 && service apache2 restart
Taavi
  • 716