#!/usr/bin/env python3
"""Check Redis connectivity."""

import redis

try:
    r = redis.Redis(host='localhost', port=6379, db=0)
    r.ping()
    print("Redis: OK")
except redis.ConnectionError:
    print("Redis: Not running")
    print("Start with: sudo systemctl start redis-server")
