Keep SyslogIdentifier=puma for compatibility
We keep using SyslogIdentifier=puma instead of the default value from capistrano3-puma 6.0.0, which is based on puma_service_unit_name (usually "<app>_puma_<env>"). This avoids introducing a new config variable in the installer and is enough for our current use case, where we don't run multiple environments on the same server.
This commit is contained in:
@@ -35,6 +35,6 @@ Restart=on-failure
|
|||||||
<%="StandardOutput=append:#{fetch(:puma_access_log)}" if fetch(:puma_access_log) %>
|
<%="StandardOutput=append:#{fetch(:puma_access_log)}" if fetch(:puma_access_log) %>
|
||||||
<%="StandardError=append:#{fetch(:puma_error_log)}" if fetch(:puma_error_log) %>
|
<%="StandardError=append:#{fetch(:puma_error_log)}" if fetch(:puma_error_log) %>
|
||||||
|
|
||||||
SyslogIdentifier=<%= fetch(:puma_service_unit_name) %>
|
SyslogIdentifier=puma
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=<%=(fetch(:puma_systemctl_user) == :system) ? "multi-user.target" : "default.target"%>
|
WantedBy=<%=(fetch(:puma_systemctl_user) == :system) ? "multi-user.target" : "default.target"%>
|
||||||
|
|||||||
Reference in New Issue
Block a user