diff --git a/Bash Scripts/gitbucket.sh b/Bash Scripts/gitbucket.sh index 0a3f76f..77a99e4 100755 --- a/Bash Scripts/gitbucket.sh +++ b/Bash Scripts/gitbucket.sh @@ -3,7 +3,19 @@ case "$1" in start) nohup java -jar /home/mollusk/Downloads/gitbucket.war &> /dev/null & + PID=$(pidof java) + if [ ${PID} ];then + echo "Gitbucket started on pid ${PID}" + else + echo "Gitbucket process failed to start!" + fi ;; stop) killall java + if [ ! ${PID} ];then + echo "Gitbucket was terminated" + else + echo "There was a problem terminating Gitbucket" + fi + ;; esac