Sha256: c850a77d2b1af06b438b255a9ccca74117febf4f4196fa66452e0a8ad558b2f8

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

[Unit]
Description=<%= class_name %>
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
ExecStart=/bin/bash -lc 'bundle exec rails runner -e production "<%= class_name %>Runner.new.service"'
User=<%= username %>
Group=<%= username %>
UMask=0002

RestartSec=1
Restart=on-failure

StandardOutput=syslog
StandardError=syslog

SyslogIdentifier=<%= file_name %>

[Install]
WantedBy=multi-user.target

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
runner_helper-0.1.0 lib/generators/runner_helper/templates/unit.service.erb