chatappuser/deploy/systemd/chatapp-user.service.example
2026-04-06 17:08:45 +08:00

20 lines
391 B
Plaintext

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