Enable and start service
Enable at boot and start immediately in one command
systemctl enable --now myapp.service
More systemd commands
-
systemctl list-units --state=failedList all units that are in a failed state
-
systemctl daemon-reload && systemctl restart myapp.serviceReload unit definitions and restart the service
-
systemctl edit myapp.serviceCreate /etc/systemd/system/myapp.service.d/override.conf with partial overrides
-
systemctl cat myapp.servicePrint the full unit file including drop-ins
-
systemd-analyze blame | head -20Show top 20 units by initialization time