[Unit] Description=Puma Server for Chexpire After=network.target [Service] Type=forking User=vagrant EnvironmentFile=/home/vagrant/{{ chexpire_app_directory }}/.rbenv-vars Environment=RAILS_ENV=production WorkingDirectory=/home/vagrant/{{ chexpire_app_directory }}/ PIDFile=/home/vagrant/{{ chexpire_app_directory }}/tmp/pids/puma.pid ExecStart=/home/vagrant/.rbenv/bin/rbenv exec bundle exec puma -C /home/vagrant/{{ chexpire_app_directory }}/config/puma.rb --daemon ExecStop=/home/vagrant/.rbenv/bin/rbenv exec bundle exec pumactl -F /home/vagrant/{{ chexpire_app_directory }}/config/puma.rb stop ExecReload=/home/vagrant/.rbenv/bin/rbenv exec bundle exec pumactl -F /home/vagrant/{{ chexpire_app_directory }}/config/puma.rb phased-restart Restart=no RemainAfterExit=yes [Install] WantedBy=multi-user.target