るいすのブログ

オタクエンジニアの雑記

unit

GolangのGinをSystemdで動かすのにハマった

背景 デプロイ先のサーバーでビルドしたものを 以下のようなUnitファイルを作ったら起動できなかった話 [Unit] Description=Run Gin [Service] User=root Group=root Environment="SERVER_ENV=production" ExecStart=/home/jenkins/go/src/hoge/gin release …