function post_install {
    systemctl daemon-reload
    systemctl enable tuxedo-tomte.timer
    # Restart also starts not running units (ignore failures during installation)
    systemctl restart tuxedo-tomte.timer > /dev/null || true


}

function post_upgrade {
    systemctl daemon-reload
    # Restart also starts not running units (ignore failures during installation)
    systemctl restart tuxedo-tomte.timer > /dev/null || true


}

function prerm_install {
    # Stop all units
    systemctl stop tuxedo-tomte.service > /dev/null || true
    systemctl stop tuxedo-tomte.timer > /dev/null || true
    # Disable all enabled units (if any)
    systemctl disable tuxedo-tomte.timer > /dev/null

    find /usr/lib/python3/spc-packages/tuxedo_tomte -type d -name '__pycache__' -exec rm -r {} +
    find /usr/lib/python3/dist-packages/tuxedo_tomte -type d -name '__pycache__' -exec rm -r {} +

}

function postrm_install {
    # SPC: Autogenerated systemd update
    systemctl daemon-reload


}

