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:
taitus
2025-05-27 18:42:24 +02:00
parent 7712e7a3cf
commit b99d2e43bb

View File

@@ -35,6 +35,6 @@ Restart=on-failure
<%="StandardOutput=append:#{fetch(:puma_access_log)}" if fetch(:puma_access_log) %>
<%="StandardError=append:#{fetch(:puma_error_log)}" if fetch(:puma_error_log) %>
SyslogIdentifier=<%= fetch(:puma_service_unit_name) %>
SyslogIdentifier=puma
[Install]
WantedBy=<%=(fetch(:puma_systemctl_user) == :system) ? "multi-user.target" : "default.target"%>