Skip to content

Instantly share code, notes, and snippets.

View MathOliveira's full-sized avatar

Matheus Sant"Anna de Oliveira MathOliveira

  • SIM Rede de Postos
  • Rio Grande do Sul, Brasil
View GitHub Profile
@MathOliveira
MathOliveira / Creating your start and stop script
Last active December 20, 2023 00:38
Creating your shell script to start/stop a Java application on Linux
With this script you can turn your jar file into a service on linux.
Change the MATH constant to the name of your application and make sure you are correctly specifying
the locationsof the files used in the variables.
For the correct operation of the script install it in the directory init.d and release its access as below:
chmod 755 *your_script*