How can I configure a service to run at startup in Ubuntu

  • To start a daemon at startup:

    update-rc.d service_name defaults  
  • To remove:

    update-rc.d -f service_name remove  

defaults => default run levels 2,3,4 and 5

Example:

update-rc.d tomcat7 defaults  






Popular posts from this blog

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data