適用於Capistrano部屬的CentOS 7
[Unit] Description=Rails Puma Server Documentation= After=network.target [Service] Type=forking User={使用者} Group=nginx WorkingDirectory=/home/{使用者}/app/current/ PIDFile=/home/{使用者}/app/shared/tmp/pids/puma.pid ExecStart=/usr/local/bin/bundle exec puma -C config/puma.rb ExecReload=/bin/kill -SIGUSR2 $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target
留言