0

I would like to have a simple shell script that will be executed 2 min after my server came up after reboot.

I just want to have a service restarted. can anyone advice? Thanks.

edotan
  • 1,876
  • 13
  • 39
  • 57

1 Answers1

5

Create an at job on system boot, either from a new init script or from /etc/rc.local.

echo "command to run etc" | at `date --date='2 minutes' +%H:%M`
HampusLi
  • 3,478
  • 17
  • 14