Appearantly not so well known option on Linux

I was talking to some colleagues about some features I used on a regular basis. I was amazed that not many knew the @reboot option.

If you want to run a process as a certain user after your system reboots you can easily use this @reboot option. When you put this in your crontab as a user, the script that follows will be performed after reboot. For production systems I would off course use other tools but for many of the pet projects I run and internal systems that are not mission critical using this option works perfectly for booting my Java app server. (In most cases this is either GlassFish or Tomcat).

Just wanted to share this for people who read my blog and who wanted to perform the same things that took a while to setup.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.