#!/usr/bin/bash
# chkconfig:    - 62 38
# description: chkconfig wrapper for clamav-freshclam.service

case "$1" in
    start)
        systemctl start clamav-freshclam.service
        ;;
    stop)
        systemctl stop clamav-freshclam.service
        ;;
    restart)
        systemctl restart clamav-freshclam.service
        ;;
    status)
        systemctl status clamav-freshclam.service
        [ $? -ne 0 ] && exit 1
        ;;
    *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
esac

exit 0
