Keep After=network.target in Puma systemd unit

We keep After=network.target instead of the new default
After=syslog.target network.target introduced in capistrano3-puma 6.0.0.

Our Puma service doesn't depend on syslog availability because it writes
logs directly to files using:

> StandardOutput=append:...
> StandardError=append:...

So the syslog.target dependency is unnecessary in our case.
This commit is contained in:
taitus
2025-05-27 18:52:12 +02:00
parent b99d2e43bb
commit d1693f06fc

View File

@@ -12,7 +12,7 @@
[Unit] [Unit]
Description=Puma HTTP Server for <%= "#{fetch(:application)} (#{fetch(:stage)})" %> Description=Puma HTTP Server for <%= "#{fetch(:application)} (#{fetch(:stage)})" %>
<%= "Requires=#{fetch(:puma_service_unit_name)}.socket" if fetch(:puma_enable_socket_service) %> <%= "Requires=#{fetch(:puma_service_unit_name)}.socket" if fetch(:puma_enable_socket_service) %>
After=syslog.target network.target After=network.target
[Service] [Service]
Type=<%= service_unit_type %> Type=<%= service_unit_type %>