Skip to content

Instantly share code, notes, and snippets.

@jblaine
Created July 26, 2012 19:12
Show Gist options
  • Save jblaine/3183894 to your computer and use it in GitHub Desktop.
Save jblaine/3183894 to your computer and use it in GitHub Desktop.
# cfengine_stdlib.cf defines
body service_method bootstart
{
service_autostart_policy => "boot_time";
service_dependence_chain => "start_parent_services";
windows::
service_type => "windows";
}
# end cfengine_stdlib.cf snippet
# my policy, which uses it:
services:
supported::
"$(servicename)"
service_policy => "start",
service_method => bootstart; # from stdlib
# Error shown:
#
# !! A method attempted to use a bundle "standard_services" that was apparently not defined!
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment