gauravtiwari/tomo-plugin-aws_sqs

View on GitHub
lib/tomo/plugin/aws_sqs/service.erb

Summary

Maintainability
Test Coverage
[Unit]
Description=AwsSqs for <%= settings[:application] %>
After=syslog.target network.target
ConditionPathExists=<%= paths.current %>

[Service]
ExecReload=/usr/bin/kill -TSTP $MAINPID
ExecStart=/bin/bash -lc 'exec <%= settings[:aws_sqs_systemd_command] %>'
Restart=on-failure
RestartSec=1
StandardError=syslog
StandardOutput=syslog
SyslogIdentifier=%n
Type=simple
WorkingDirectory=<%= paths.current %>

# Greatly reduce Ruby memory fragmentation and heap usage
# https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/
Environment=MALLOC_ARENA_MAX=2

[Install]
WantedBy=default.target