lib/generators/runner_helper/templates/unit.service.erb in runner_helper-0.0.1 vs lib/generators/runner_helper/templates/unit.service.erb in runner_helper-0.0.2
- old
+ new
@@ -3,20 +3,20 @@
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/home/deploy/<%= application_name %>/current
-ExecStart=/bin/bash -lc 'rails runner -e production "<%= class_name %>.new.service"'
+ExecStart=/bin/bash -lc '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 %>
+SyslogIdentifier=<%= file_name %>_runner
[Install]
WantedBy=multi-user.target