Rails systemd unit file

適用於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

留言

粗體斜體刪除線連結引用圖片程式碼

注意:您的電子信箱將不會被公開,且網站連結不會被搜尋引擎採計

{124} {123} {122} {121} {120} {119} {118} {117} {116} {115} {114} {113} {112} {111} {100} {025} {024} {023} {022} {021} {020} {019} {018} {017} {016} {015} {014} {013} {012} {011} {010} {009} {008} {007} {006} {005} {004} {003} {002} {001}