File geoserver.service of Package geoserver
# Systemd unit file for tomcat # # You can clone this service by: # 1. Add a new EnvironmentFile declaring the new values for CATALINA_BASE # and others # 2. Change JAVA_HOME or just delete the line below if not using jdk [Unit] Description=GeoServer is an open source server for sharing geospatial data. After=network.target [Service] Type=simple Environment="JAVA_HOME=/usr/lib64/jvm/java-17-openjdk-17" Environment="GEOSERVER_HOME=/usr/share/geoserver" Environment="export JAVA_TOOL_OPTIONS='-Dfile.encoding=UTF-8'" ExecStart=/usr/share/geoserver/bin/startup.sh ExecStop=/usr/share/geoserver/bin/shutdown.sh [Install] WantedBy=multi-user.target