modules/InstallationSDK.ChefClientInstaller/code/ClientService.cs
/// <summary>
/// Start Chef Client windows service. 
/// </summary>
Start Chef Client windows service.
Start Chef Client windows service .
public static void Start(TimeSpan timeToWait)
        {
            RoleEnvironment.Changing += ChefConfigChanging;
            RoleEnvironment.StatusCheck += Chef_StatusCheck;
            var service = new WindowsService() { Name = "chef-client", TimeToWait = timeToWait };
            service.Start();
            ClientService.statusCheckFilePath = CloudConfigurationManager.GetSetting("ChefClient_SetBusyCheck");
        }
public static void Start ( TimeSpan timeToWait ) { RoleEnvironment . Changing += ChefConfigChanging ; RoleEnvironment . StatusCheck += Chef_StatusCheck ; var service = new WindowsService ( ) { Name = " " , TimeToWait = timeToWait } ; service . Start ( ) ; ClientService . statusCheckFilePath = CloudConfigurationManager . GetSetting ( " " ) ; }
Start Chef Client windows service.
Start Chef Client windows service .
// Start Chef Client - wait 30 seconds
timeToWait
TimeSpan