Ruby on Railsの標準のWebサーバ「puma」ですがCentOSなどのLinux上で本番稼働させる場合は、systemdにすることでプロセスを管理が簡単になります。 systemdの概要については拙著「systemd」をご参照ください。 🍣 pumaのsystemdの設定ファイルpuma用のsystemdの設定ファイルのサンプルです。 [Unit] Description=Puma HTTP Server After=network.target [Service] # Foreground process (do not use --daemon in ExecStart or config.rb) Type=simple # Preferably configure a non-privileged user # User= # Specify the path to y
