[Unit]
Description=SurrealDB Service

[Service]
Type=simple
ExecStart=/usr/share/surreal/surreal start
WorkingDirectory=/usr/share/surreal
Restart=always

KillMode=process

LimitNOFILE=infinity

LimitCORE=infinity

; Environment variables:
; Environment=SURREAL_USER=root
; Environment=SURREAL_PASS=root
; Environment=SURREAL_BIND=0.0.0.0:8000
; Environment=SURREAL_LOG=debug
; Environment=SURREAL_STRICT=false

[Install]
WantedBy=multi-user.target