Score a custom service for security posture.

Section: Restart Policy, Types, Hardening

Evaluate unit hardening

bash
bash
systemd-analyze security myapp.service
Explanation

Good final review after adding sandbox settings.

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 Restart Policy, Types, Hardening
Limit Linux capabilities
Reduce privilege scope.
OpenIn sheetinisame section
Restart on failure
Automatic restart policy.
OpenIn sheetinisame section
One-shot service type
Configure a one-time task service.
OpenIn sheetinisame section
Use Type=notify
Service signals readiness to systemd.
OpenIn sheetinisame section
Basic sandboxing example
Apply a few common hardening options.
OpenIn sheetinisame section
Enable and start custom unit
Activate the new custom service.
OpenIn sheetbash1 tag match