How to run as service: level=error msg="Unable to read from pty/cmd" error="read /dev/ptmx: input/output error"