Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

dpkg_autostart (27) Versions 1.0.0

Provides the dpkg_autostart resource for suppressing service starts during dpkg operations.

Policyfile
Berkshelf
Knife
cookbook 'dpkg_autostart', '~> 1.0.0', :supermarket
cookbook 'dpkg_autostart', '~> 1.0.0'
knife supermarket install dpkg_autostart
knife supermarket download dpkg_autostart
README
Dependencies
Changelog
Quality 50%

dpkg_autostart cookbook

Cookbook Version
Build Status
OpenCollective
OpenCollective
License

dpkg likes to start services after installation as the Debian convention
dictates. This can be annoying and problematic, especially when you don't
want services to be immediately started before custom configuration can
be applied. Instead of disabling all services from auto starting on installation
as the dpkg_deb_unautostart cookbook does, lets allow specific services
to be targeted.

Breaking change for upgrades

Upgrading from older cookbook releases that used recipes/default.rb and
attributes/default.rb is a breaking change. Those recipe and attribute
entry points were removed when the cookbook moved to the dpkg_autostart
custom resource.

Before upgrading, replace any include_recipe 'dpkg_autostart::default'
usage and any node['dpkg_autostart'] attribute configuration with one
dpkg_autostart resource per service. See [migration.md](migration.md).

Usage

Include the cookbook as a dependency in your metadata:

depends 'dpkg_autostart'

Declare one dpkg_autostart resource for each service you want to suppress
during package installation:

dpkg_autostart 'mysql-server' do
  allow false
end

dpkg_autostart 'apache2' do
  allow false
end

That's it. When dpkg attempts to start the service after install (generally
via apt) it will be instructed not to. This allows the proper configuration
files to be generated, and the service to be started after everything is
ready.

Customizing blocked actions

By default the generated policy-rc.d script blocks start and restart.
You can extend the blocked action list:

dpkg_autostart 'mysql-server' do
  allow false
  disable_actions %w(start restart reload)
end

policy-rc.d is a single global file, so disable_actions values are merged
across all dpkg_autostart resources in the run.

Resource Documentation

  • [dpkg_autostart resource](documentation/dpkg_autostart_dpkg_autostart.md)

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website
https://opencollective.com/sous-chefs/sponsor/1/website
https://opencollective.com/sous-chefs/sponsor/2/website
https://opencollective.com/sous-chefs/sponsor/3/website
https://opencollective.com/sous-chefs/sponsor/4/website
https://opencollective.com/sous-chefs/sponsor/5/website
https://opencollective.com/sous-chefs/sponsor/6/website
https://opencollective.com/sous-chefs/sponsor/7/website
https://opencollective.com/sous-chefs/sponsor/8/website
https://opencollective.com/sous-chefs/sponsor/9/website

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

hadoop Applicable Versions
jenkins Applicable Versions
lxc Applicable Versions
monit-ng Applicable Versions
nrpe-ng Applicable Versions
openldap Applicable Versions
rabbitmq Applicable Versions
serverdensity Applicable Versions
zookeeperd Applicable Versions

dpkg_autostart Cookbook CHANGELOG

This file is used to list changes made in each version of the dpkg_autostart cookbook.

1.0.0 (2026-04-21)

⚠ BREAKING CHANGES

  • Upgrading from releases that used recipes/default.rb and attributes/default.rb now requires replacing that configuration with dpkg_autostart resources before upgrading.

Features

  • document custom resource migration (#68) (e91384c)
  • migrate dpkg_autostart resource (97cfd57)

Bug Fixes

  • ci: Update workflows to use release pipeline (#59) (276fd92)
  • pass Slack secrets to release workflow (5cd2327)
  • pin cinc installer action (d0499de)

0.4.16 (2025-10-15)

Bug Fixes

  • ci: Update workflows to use release pipeline (#59) (276fd92)

0.4.11 - 2023-06-08

Standardise files with files in sous-chefs/repo-management

0.4.6 - 2023-03-02

  • Standardise files with files in sous-chefs/repo-management

0.4.5 - 2023-02-14

  • Remove delivery folder

0.4.4 - 2021-08-31

  • Standardise files with files in sous-chefs/repo-management

0.4.3 - 2021-06-01

  • resolved cookstyle error: test/cookbooks/test/metadata.rb:4:25 convention: Layout/TrailingEmptyLines

0.4.2 - 2020-11-27

  • Fix regression introduced in 0.4.1, of undefined method action being received

0.4.1 (2020-09-16)

  • resolved cookstyle error: libraries/provider.rb:13:7 refactor: ChefModernize/ActionMethodInResource
  • resolved cookstyle error: libraries/provider.rb:17:7 refactor: ChefModernize/ActionMethodInResource

0.4.0 (2020-06-18)

  • Restore Chef Infra Client < 16 compatibility

v0.3.1 (2020-06-02)

  • resolved cookstyle error: libraries/resource.rb:8:7 warning: ChefDeprecations/ResourceUsesOnlyResourceName

v0.3.0 (2020-05-22)

  • Transferred ownership of this cookbook to Sous Chefs
  • Updated the resource to define the resource name via the resource DSL
  • Updated the resource to define the allowed actions and default action via the resource DSL
  • Removed support for Chef 10
  • Added source_url / issues_url to the metadata.rb
  • Added supports 'debian' and 'ubuntu' the to metadata.rb
  • Added chefignore file to limit files uploaded to the Chef Server
  • Added testing with GitHub Actions
  • Added Delivery local mode configuration for local testing
  • Added various documentation files
  • Added a Berksfile

v0.2.0

  • NOTE*: Release introduces minor breaking change due to updated interaction with resource collection.

  • Fix script syntax in bin file (#7 thanks @hamann!)

  • Allow multiple services and actions (#7 thanks @hamann!)

  • Use ResourceCollection#insert when adding bin resource

    • NOTE: This may require updating resource locations or adding the default recipe to the beginning of the run list

v0.1.12

  • Be a noop except on debian family

v0.1.10

  • Add support for upstart services (thanks @bkw)

v0.1.8

  • Add support for Chef 10 (#3)
  • Properly update resource_collection when unshifting (#4)
    • Thanks @mpasternacki

v0.1.6

  • Fix version number

v0.1.4

  • Use "heavyweight" resource/provider
  • Fix execution error on initial runs (#2)

v0.1.2

  • Add explicit :create action to template

v0.1.0

  • Initial commit

Collaborator Number Metric
            

1.0.0 passed this metric

Contributing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Cookstyle Metric
            

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Testing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number

Copyright © 2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.

Progress and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.
See Trademarksfor appropriate markings. All rights in any other trademarks contained herein are reserved by their respective owners and their inclusion does not imply an endorsement, affiliation, or sponsorship as between Progress and the respective owners.

Code of Conduct Terms and Conditions of Use Privacy Policy Cookie Policy Trademark Policy Status