Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- PATH=/usr/sbin:/usr/bin:/sbin:/bin
- VAR=$(ps aux | grep python | grep openstackDataCollector | grep -v bash | grep -v grep | awk '{print $2}')
- #echo "$VAR"
- if [[ "$VAR" == '' ]]; then
- echo "OpenstackDataCollector failed. Restarting..."
- /usr/bin/python /opt/fiware/openstackDataCollector.py
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement