Shorten MINIC_DEBUG to DEBUG
Show the correct PID and write to a logfile
Define the logfile for mini-ci
Fixed lockfiles and signals in daemon mode