# For more details on writing a service, see: # https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux # [Unit] Description=Greenstone3 Triplestore3 Server After=network.target [Service] Type=simple User=@GSDL_SERVICE_USERNAME@ ExecStart=/usr/bin/env bash @GEXT_JENA@/service.d/greenstone3-triplestore3-start.sh # # If using 'Restart' directive, read the following to avoid some common pitfalls # https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6 # Restart=on-failure # Other restart options: always, on-abort, etc # The install section is needed to use `systemctl enable` to start on boot # For a user service that you want to enable and start automatically, use `default.target` # For system level services, use `multi-user.target` # [Install] WantedBy=multi-user.target