Skip to content
Claz Blog

Claz Blog

Claz.org News and Updates

Tag: linux

Uncategorized

Linux+Spring Boot – autostart apps with crontab

June 15, 2015June 15, 2015 Andrei KarneyenkaLeave a comment

I always felt like there should be a better way to autostart spring boot apps on server boot. Wrapping as linux service, editing rc.local, etc – feels like unnecessarily tedious and painful.

Here’s my new favorite:

  crontab -e

add:

@reboot /path/to/my/app/run.sh

Works like a charm.

Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Claz Blog
    • Already have a WordPress.com account? Log in now.
    • Claz Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar