@reboot in the crontab

I stumbled upon this little trick while looking for other means to have processes come online after a reboot. Apparently you can have an entry in a users crontab which looks like this:

@reboot /your/command/goes/here which will run the command when the machine reboots, as that user. Pretty neat! This works under Linux (even though Redhat managed to not document it), and other places which have implemented Vixie Cron since 1994. The wonders and joys of the interet!


links

social