Skip to content

Instantly share code, notes, and snippets.

@germanow
Created July 1, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanow/8c52c8d712acc834f8c842703de9adc1 to your computer and use it in GitHub Desktop.
Save germanow/8c52c8d712acc834f8c842703de9adc1 to your computer and use it in GitHub Desktop.
Example systemd configuration for geoserver
[Unit]
Description=Geoserver
After=multi-user.target
[Service]
Type=simple
User=ivan
WorkingDirectory=/home/ivan/work/geoserver-2.18.1-bin/bin
ExecStart=/bin/bash /home/ivan/work/geoserver-2.18.1-bin/bin/startup.sh
Restart=always
RestartSec=5
Environment="GEOSERVER_HOME=/home/ivan/work/geoserver-2.18.1-bin"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment