check required commands, generate pidfile, add command-line in the log