Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash speechbatch1.sh
- service=dmsspeechbatch-0.0.jar #(name of the service)
- if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
- then
- echo "$service is running"
- else
- cd /application/TextToSpeech/dmsspeechbatch
- nohup java -jar target/dmsspeechbatch-0.0.jar &
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement