Quick Linux Tip #121:
Question: Which exact binary does a systemd service execute?
Try: systemctl show nginx -p ExecStart --no-pager
Info: The systemctl show command displays unit properties, extracting exact binaries, arguments, and configuration file paths via specific property filters.
Examples:
- $
systemctl show nginx --all# Dump all available properties for the service unit - $
systemctl cat nginx# Display the complete raw configuration file content - $
systemd-analyze verify /etc/systemd/system/*.service# Validate syntax and errors in unit files
Note: Combine output with grep for quick extraction. systemctl cat provides a cleaner layout for reviewing raw unit configurations.
Leave a Reply