From b99d2e43bb8951c2553ae158c1985983e1865182 Mon Sep 17 00:00:00 2001 From: taitus Date: Tue, 27 May 2025 18:42:24 +0200 Subject: [PATCH] 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 "_puma_"). 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. --- lib/capistrano/templates/puma.service.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/templates/puma.service.erb b/lib/capistrano/templates/puma.service.erb index 75d3dd850..de71f6885 100644 --- a/lib/capistrano/templates/puma.service.erb +++ b/lib/capistrano/templates/puma.service.erb @@ -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"%>