Tutorial Series

How To Configure a Linux Service to Start Automatically After a Crash or Reboot

Default avatar
By Sadequl Hussain
Developer and author at DigitalOcean.
How To Configure a Linux Service to Start Automatically After a Crash or Reboot

Introduction

This series gives practical examples of and teaches the theory behind making your applications run like services. It explores the init systems of System V, Upstart, and systemd from the perspective of service startup.

Summary View
detailed View

Series Tutorials

Tutorial

This tutorial shows you how to configure system services to automatically restart after a crash or a server reboot. We cover the three most common init systems in this tutorial: System V, Upstart, and systemd.

Tutorial

In this second tutorial about starting Linux services automatically, we’ll take a step back and explain init processes in more detail. You should gain a good understanding of how they control a daemon’s start-up behavior. We’ll see how to do this from three different init systems: System V, Upstart, and systemd.

Check out all our Tutorial Series

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.