Skip to content

Instantly share code, notes, and snippets.

@ZuZuD
Created July 4, 2019 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZuZuD/5bd501456490dd441f52d2fdc4f19672 to your computer and use it in GitHub Desktop.
Save ZuZuD/5bd501456490dd441f52d2fdc4f19672 to your computer and use it in GitHub Desktop.
systemd_unit to strace amazon-ssm-agent.service
[Unit]
Description=stracer for SSM
After=amazon-ssm-agent.service
PartOf=amazon-ssm-agent.service
[Service]
ExecStart=/usr/bin/bash -l -c '/bin/strace -p $(pidof amazon-ssm-agent) > /var/log/strace_ssm_agent.log 2>&1'
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment