GithubHelp home page GithubHelp logo

isabella232 / dpkg_autostart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sous-chefs/dpkg_autostart

0.0 0.0 0.0 58 KB

Development repository for the dpkg_autostart cookbook

Home Page: https://supermarket.chef.io/cookbooks/dpkg_autostart

License: Apache License 2.0

Ruby 73.70% Shell 26.30%

dpkg_autostart's Introduction

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.

Usage

Resource

Include the cookbook as a dependency in your metadata:

depends 'dpkg_autostart'

Then, within your recipe, disable the service with the resource:

dpkg_autostart 'mysql-server' 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.

Attribute

You can also provide a list of services to disable via node attribute. Add the default recipe to the run list:

run_list 'recipe[dpkg_autostart]'

and set the services you want to restrict from auto starting:

node.default['dpkg_autostart']['disabled_services'] = ['mysql-server', 'apache2']

Related

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

dpkg_autostart's People

Contributors

chrisroberts avatar tas50 avatar xorimabot avatar xorima avatar ramereth avatar kitchen-porter avatar bkw avatar damacus avatar hamann avatar tasdikrahman avatar axelrtgs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.