Skip to content

Instantly share code, notes, and snippets.

@lhmachado
Last active May 18, 2020 19:52
Show Gist options
  • Save lhmachado/84190e71c0d42e580d73456a23efd49e to your computer and use it in GitHub Desktop.
Save lhmachado/84190e71c0d42e580d73456a23efd49e to your computer and use it in GitHub Desktop.
[Unit]
Wants=network-online.target
After=network.target network-online.target
Description=Gremlin Server as a service
[Service]
User=root
#change this directory into your workspace
#mkdir workspace
WorkingDirectory=/opt/gremlin-server
#path to the executable bash script which executes the jar file
ExecStart=/bin/bash start.sh /opt/gremlin-server/conf/gremlin-server-runner.yaml
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment