Skip to content

Instantly share code, notes, and snippets.

@dario61081
Created July 20, 2017 16:00
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 dario61081/42be32394156012d979ef55bed65b11a to your computer and use it in GitHub Desktop.
Save dario61081/42be32394156012d979ef55bed65b11a to your computer and use it in GitHub Desktop.
Matar un servicio utilizado en un puerto definido y reiniciar como servicio la aplicación en segundo plano.
#!/bin/bash
fuser -k 9090/tcp
nohup java -jar warehousetracker-1.0-SNAPSHOT.jar > logs.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment