Sha256: 48419e928b974d47b2ace9e7a43702459eb0b9e964ba8fe367158ca793febea0

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 KB

Contents

#!/usr/bin/env ruby
#
# ./chef-service-manager - Control chef-service on Windows platforms.
#
# Author:: Serdar Sutay (serdar@chef.io)
# Copyright:: Copyright 2013-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "chef"
require "chef/application/windows_service_manager"

if Chef::Platform.windows?
  chef_client_service = {
    service_name: "chef-client",
    service_display_name: "Chef Client Service",
    service_description: "Runs Chef Client on regular, configurable intervals.",
    service_file_path: File.expand_path("../chef-windows-service", $PROGRAM_NAME),
    delayed_start: true,
    dependencies: ["Winmgmt"],
  }
  Chef::Application::WindowsServiceManager.new(chef_client_service).run
else
  puts "chef-service-manager is only available on Windows platforms."
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
chef-14.15.6-universal-mingw32 bin/chef-service-manager
chef-bin-15.5.17 bin/chef-service-manager
chef-bin-15.5.16 bin/chef-service-manager
chef-bin-15.5.15 bin/chef-service-manager
chef-bin-15.5.9 bin/chef-service-manager
chef-14.14.29-universal-mingw32 bin/chef-service-manager
chef-bin-15.4.45 bin/chef-service-manager
chef-14.14.25-universal-mingw32 bin/chef-service-manager
chef-14.14.14-universal-mingw32 bin/chef-service-manager
chef-bin-15.3.14 bin/chef-service-manager
chef-bin-15.2.20 bin/chef-service-manager
chef-bin-15.1.36 bin/chef-service-manager
chef-bin-15.0.300 bin/chef-service-manager
chef-bin-15.0.298 bin/chef-service-manager
chef-bin-15.0.293 bin/chef-service-manager
chef-bin-15.0.240 bin/chef-service-manager
chef-14.5.27-universal-mingw32 bin/chef-service-manager
chef-14.4.56-universal-mingw32 bin/chef-service-manager