Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash speechbatch1.sh
  2. service=dmsspeechbatch-0.0.jar #(name of the service)
  3. if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
  4. then
  5. echo "$service is running"
  6. else
  7. cd /application/TextToSpeech/dmsspeechbatch
  8. nohup java -jar target/dmsspeechbatch-0.0.jar &
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement