private RunLevelInfo GetRunLevelInfo(string line, string runLevel) { RunLevelInfo retInfo = null; if (line.Length > 3) { char cStartKill = line[0]; char cDigit1 = line[1]; char cDigit2 = line[2]; retInfo = new RunLevelInfo(); if (char.IsDigit(cDigit1) && char.IsDigit(cDigit2)) { if (cStartKill == 'S') retInfo.Start = true; if (cStartKill == 'K') retInfo.Kill = true; retInfo.RunLevel = runLevel; retInfo.Service = line.Substring(3); } } return retInfo; }