Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- case "$1" in
- start)
- # Comandos a serem executados no início do serviço (se necessário)
- echo "Iniciando o serviço de limpeza do Docker..."
- ;;
- stop)
- echo "Parando os processos do Docker..."
- pkill -f "docker*"
- echo "Desmontando volumes do Docker..."
- umount -lf /var/lib/docker/volumes
- echo "Limpeza do Docker concluída."
- ;;
- *)
- echo "Uso: $0 {start|stop}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement