Created
March 22, 2012 14:32
-
-
Save nckltcha/2158663 to your computer and use it in GitHub Desktop.
Check Service is Running and Post to Prowl
This file contains hidden or 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/sh | |
| # Name of Service | |
| SERVICE=sick | |
| if ps | grep -v grep | grep $SERVICE > 0 | |
| then | |
| wget --post-data 'apikey=XXXX&application=DiskStation&event=SickBeard&description=SickBeard is Running' -O - http://api.prowlapp.com/publicapi/add | |
| else | |
| wget --post-data 'apikey=XXXX&application=DiskStation&event=SickBeard&description=SickBeard is not Running' -O - http://api.prowlapp.com/publicapi/add | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment