Last active
May 19, 2019 11:35
-
-
Save NbtKmy/3c7f31d268dc2ccd151084bffb9d362a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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