Files
stats-gateway/systemd/stats-gateway.service
T

25 lines
478 B
Desktop File

[Unit]
Description=stats-gateway gRPC service
After=network.target
Requires=network.target
[Service]
Type=simple
User=stats
Group=stats
ExecStart=/usr/local/bin/stats-gateway --addr 127.0.0.1:50051 --db /var/lib/stats-gateway/stats.db
Restart=on-failure
RestartSec=5s
StandardOutput=journal
StandardError=journal
# hardening
NoNewPrivileges=true
ProtectSystem=strict
ReadWritePaths=/var/lib/stats-gateway
ProtectHome=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target