2017-08-31 09:47:07 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Puma HTTP server for Ruby Apps : %u
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
WorkingDirectory=%h/www
|
|
|
|
UMask=0027
|
|
|
|
PIDFile=%h/ruby.pid
|
|
|
|
ExecStartPre=/bin/mkdir -m 0750 -p %h/run
|
2019-01-28 14:29:01 +01:00
|
|
|
ExecStart=%h/.rbenv/bin/rbenv exec bundle exec puma --bind unix://%h/run/puma.sock?umask=0007 --pidfile %h/run/puma.pid --dir %h/www --config %h/config/puma.rb
|
2017-08-31 09:47:07 +02:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
|
KillMode=process
|
|
|
|
#Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
2017-10-20 10:54:35 +02:00
|
|
|
WantedBy=default.target
|
2017-08-31 09:47:07 +02:00
|
|
|
Alias=puma.service
|