Sha256: b6073ca0f3cbd459ab6f690ff0d908a267b69ecda5935403bf5137ce9e1c6fda

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

[Unit]
Description=Puma HTTP Server
After=network.target

# Uncomment for socket activation (see below)
# Requires=puma.socket

[Service]
# Puma supports systemd's `Type=notify` and watchdog service
# monitoring, if the [sd_notify](https://github.com/agis/ruby-sdnotify) gem is installed,
# as of Puma 5.1 or later.
# On earlier versions of Puma or JRuby, change this to `Type=simple` and remove
# the `WatchdogSec` line.
Type=simple

# If your Puma process locks up, systemd's watchdog will restart it within seconds.
# WatchdogSec=10

# Preferably configure a non-privileged user
User=deploy

WorkingDirectory=/u/apps/{{project_name}}/current

# Helpful for debugging socket activation, etc.
# Environment=PUMA_DEBUG=1
Environment=RAILS_ENV={{rails_env}}

# SystemD will not run puma even if it is in your path. You must specify
# an absolute URL to puma. For example /usr/local/bin/puma

# Variant: Use `bundle exec --keep-file-descriptors puma` instead of binstub
ExecStart=/usr/local/bin/bundle exec --keep-file-descriptors puma -C /u/apps/{{project_name}}/current/config/puma/{{rails_env}}.rb

Restart=always

[Install]
WantedBy=multi-user.target

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
subspace-3.0.13 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.12 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.11 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.10 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.9 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.6 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.5 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.4 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.3 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.2 ansible/roles/puma/templates/puma-systemd.service
subspace-3.0.0 ansible/roles/puma/templates/puma-systemd.service