Skip to content

Instantly share code, notes, and snippets.

@rbrenton
Last active November 28, 2017 21:12
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 rbrenton/f1e5cac45b2da03eed0f04609898401a to your computer and use it in GitHub Desktop.
Save rbrenton/f1e5cac45b2da03eed0f04609898401a to your computer and use it in GitHub Desktop.
Systemd config for awslogs service.
[Unit]
Description=The CloudWatch Logs agent
After=rc-local.service
[Service]
Type=simple
Restart=always
KillMode=process
TimeoutSec=infinity
PIDFile=/var/awslogs/state/awslogs.pid
ExecStart=/var/awslogs/bin/awslogs-agent-launcher.sh --start --background --pidfile $PIDFILE --user awslogs --chuid awslogs &
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment