Home › Linux Administration & Deployment
systemd starts and supervises services on almost every modern distro. A unit file describes how to run a program. Command Purpose systemctl status nginx state, PID, recent logs systemctl start / stop / restart / reload control now systemctl enable --now start at boot and now systemctl daemon-reload after editing unit files systemctl list-units --failed what is broken journalctl -u myapp -f follow a service's logs journalctl -p err --since "1 hour ago" filter by priority/time systemctl list-timers scheduled timers (cron alternative) Unit file essentials Restart=on-failure restarts crashed services, User= drops root, EnvironmentFile= loads secrets, and hardening options (NoNewPrivileges, ProtectSystem) sandbox the process.