Startup hook?

You can use libxl hook e.g.: