Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #primer test de script de comprobación de status de sickchill
- echo "comprobamos el status del servicio sickchill"
- sleep 2s
- sudo systemctl status sickchill.service > /dev/null 2>&1
- if [ $? -ne 0 ]
- then
- echo "el servicio no esta funcionando"
- sudo systemctl restart sickhill.service
- fi
- sudo systemctl status sickchill.service > sickchill.txt
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement