Linux systemd Service Files Cheat Sheet/Enable and start custom unit

Activate the new custom service.

Section: Authoring Basics

Enable and start custom unit

bash
bash
sudo systemctl enable --now myapp.service
Explanation

Common final step after authoring a unit.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Authoring Basics
Reload after creating unit
Refresh manager state after writing a new service.
OpenIn sheetbashsame section
Create custom service file
Open a new service file under /etc/systemd/system.
OpenIn sheetbashsame section
Basic service file example
Minimal custom service unit.
OpenIn sheetinisame section
Create override drop-in
Edit a unit override file.
OpenIn sheetbash1 tag match
Show effective unit with drop-ins
Print final unit and all overrides.
OpenIn sheetbash1 tag match
Evaluate unit hardening
Score a custom service for security posture.
OpenIn sheetbash1 tag match