Skip to content

Instantly share code, notes, and snippets.

@GitarPlayer
Created May 21, 2025 09:36
Show Gist options
  • Save GitarPlayer/8b28b2fea6b52dd3e37cad8e4ef64b87 to your computer and use it in GitHub Desktop.
Save GitarPlayer/8b28b2fea6b52dd3e37cad8e4ef64b87 to your computer and use it in GitHub Desktop.
[Unit]
Description = Stardog Knowledge Graph
Documentation=https://www.stardog.com/
After = network.target auditd.service
[Service]
Type = forking
User = stardog
Group = stardog
TimeoutStopSec = 0
ExecStart = /opt/stardog/stardog-server.sh start
ExecStop = /opt/stardog/stardog-server.sh stop
ExecReload = /opt/stardog/stardog-server.sh reload
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
RestartSec = 10s
KillSignal = SIGTERM
SendSIGKILL = no
SuccessExitStatus=143
LimitNOFILE=100050
# increase as needed if "database load" too long
# due to statistics recalculation or virtual graph loading
TimeoutStartSec=5m
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment