Skip to content

Instantly share code, notes, and snippets.

@RoccoHoward
Created August 1, 2018 11:02
Show Gist options
  • Save RoccoHoward/8a128fdc9da36dfbd08857a12116e688 to your computer and use it in GitHub Desktop.
Save RoccoHoward/8a128fdc9da36dfbd08857a12116e688 to your computer and use it in GitHub Desktop.
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