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:
@@ -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 %>
|
||||||
|
|||||||
Reference in New Issue
Block a user