chatapp-gateway/deploy/systemd/chatapp-gateway.service.example
2026-04-06 17:08:51 +08:00

20 lines
406 B
Plaintext

[Unit]
Description=ChatApp Gateway Service
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/apps/gateway/current
ExecStart=/opt/apps/gateway/current/bin/gateway -config /opt/apps/gateway/current/config/prod.yaml
Restart=always
RestartSec=3
KillSignal=SIGTERM
TimeoutStopSec=30
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target