Sha256: 20dd34ede2ad4f23362b37efdc427d9a4c17e5cf7ab90ff622f97348ae5e64e0

Contents?: true

Size: 973 Bytes

Versions: 3

Compression:

Stored size: 973 Bytes

Contents

[Unit]
Description = <%= fetch(:application) %> Puma Web Server
After = network.target

[Service]
Type = simple
Environment = RAILS_ENV=<%= fetch(:rails_env) %>
Environment = PWD=<%= current_path %>
WorkingDirectory = <%= current_path %>
ExecStart = /home/<%= fetch(:user) %>/.rvm/bin/rvm <%= fetch(:rvm_ruby_version) %> do <%= current_path %>/bin/puma -S <%= shared_path %>/tmp/pids/puma.state -C <%= shared_path %>/puma.rb
ExecStop = /home/<%= fetch(:user) %>/.rvm/bin/rvm <%= fetch(:rvm_ruby_version) %> do <%= current_path %>/bin/pumactl -S <%= shared_path %>/tmp/pids/puma.state -F <%= shared_path %>/puma.rb stop
ExecReload = /home/<%= fetch(:user) %>/.rvm/bin/rvm <%= fetch(:rvm_ruby_version) %> do <%= current_path %>/bin/pumactl -S <%= shared_path %>/tmp/pids/puma.state -F <%= shared_path %>/puma.rb phased-restart
User = <%= fetch(:user) %>
Group = <%= fetch(:group) || fetch(:user) %>
Restart = always
KillMode = process

[Install]
WantedBy = multi-user.target

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/auto/config/systemd/puma.service.erb
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/auto/config/systemd/puma.service.erb
adminos-1.0.0.pre.rc.3 lib/generators/templates/install/auto/config/systemd/puma.service.erb