Skip to content

Instantly share code, notes, and snippets.

@NbtKmy

NbtKmy/restart_sample.sh

Last active May 19, 2019
Embed
What would you like to do?
#!/bin/bash
# für stoppen
path="/path/to/Cantaloupe-Ordner"
targetpath="$path/cantaloupe-4.0.2.war"
cd $path
echo "Stop $targetpath server."
pkill -f cantaloupe
# für starten
echo "restart $targetpath server."
nohup java -Dcantaloupe.config=$path/cantaloupe.properties -Xmx3g -jar $targetpath &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.