For simplicity I tried to get the meta callback working (server starts/stops) but I even failed that 'simple' task. I mostly used this python code as guidance but I can't seem to 'translate' the following code to ruby: