Garage: fix Service

This commit is contained in:
CanbiZ 2025-10-27 11:09:27 -07:00 committed by GitHub
parent 5c04c89f3f
commit 6c662ae6ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,6 +59,32 @@ metrics_token = "${METRICS_TOKEN}"
EOF EOF
msg_ok "Set up Garage" msg_ok "Set up Garage"
msg_info "Creating service"
cat <<'EOF' >/etc/systemd/system/garage.service
[Unit]
Description=Garage Object Storage (Deuxfleurs)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/garage -c /etc/garage.toml server
Restart=always
RestartSec=5
User=root
WorkingDirectory=/var/lib/garage
Environment=RUST_LOG=info
StandardOutput=append:/var/log/garage.log
StandardError=append:/var/log/garage.log
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
EOF
$STD systemctl enable -q --now garage
msg_ok "Created Service"
motd_ssh motd_ssh
customize customize