Linux systemd Services
Run apps as services: enable, restart, and read journals.
- systemd
- systemctl
- journalctl
- linux service
- enable service
Linux systemd Services
Run apps as services: enable, restart, and read journals.
Commands
| Command | What it does |
|---|---|
systemctl status app | Health plus recent logs |
systemctl enable now app | Start now and on boot |
systemctl restart app | Restart after config change |
journalctl -u app -f | Follow service logs |
journalctl bounded window | Logs from the last hour |
Example
sudo systemctl enable --now app
systemctl is-active app
FAQ
Service fails at boot but not manually?
Environment and paths differ - declare working directory, user, and env files explicitly in the unit.
Where do stdout logs go?
The journal by default; add file output options for copies too.
Perguntas frequentes
Service fails at boot but not manually?
Environment and paths differ - declare working directory, user, and env files explicitly in the unit.
Where do stdout logs go?
The journal by default; add file output options for copies too.
Linux
Linux Files and Directories
Navigate, create, move, and inspect files with core commands.
Linux Permissions
Read ls output, chmod, chown, and sudo without breaking access.
Linux Text Processing
cat, head, cut, sort, uniq, and awk for daily data shaping.
Linux grep and find
Find files by name, age, and size; search inside them fast.