You are here
Home > IT > metabse用のsystemd

metabse用のsystemd

 cat /etc/systemd/system/metabase.service

[Unit]
Description=metabase
After=network.target
[Service]
Type=simple
User=ec2-user
WorkingDirectory=/home/ec2-user/metabase
ExecStart=/usr/bin/java -DMB_JETTY_PORT=3001 -jar /home/ec2-user/metabase/metabase.jar
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target

いつもの

sudo systemctl daemon-reload
sudo systemctl enable metabase
sudo systemctl status metabase
sudo systemctl start metabase

Top