[Unit]
Description=Metin auth runtime
After=metin-db-ready.service
Wants=metin-db-ready.service
Requires=metin-db-ready.service
PartOf=metin-server.service
Before=metin-server.service

[Service]
Type=simple
User={{USER_NAME}}
Group={{GROUP_NAME}}
EnvironmentFile=-{{ENV_FILE}}
WorkingDirectory={{RUNTIME_ROOT}}/channels/auth
ExecStart={{RUNTIME_ROOT}}/channels/auth/game_auth
Restart=on-failure
RestartSec=5
KillSignal=SIGTERM
TimeoutStopSec=60
LimitNOFILE=65535
LimitCORE=infinity

[Install]
RequiredBy=metin-server.service
