Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For the first time I was asked by a daemon I installed to set a flag in there.

What's it for? Is it a newish concept?

share|improve this question

migrated from Nov 8 '11 at 0:39

This question came from our site for professional and enthusiast programmers.

up vote 13 down vote accepted

Basically, /etc/default contains some parameters that the end user or administrator is likely to change, rather than embedding the values in the actual boot scripts. In this way, changes will persist even if you upgrade the package and the boot script is replaced. It's a Debian concept and it's adopted only by certain packages.

share|improve this answer
Does this mean the user is expected to edit the default config directly or does the program on default to that location if there is no other config available? – James McMahon Jul 31 '13 at 17:23

The files in this dir basically contains configuration parameters. For example, if you have a service at /etc/init.d/test, the script first look at /etc/default/test before starting/stopping the test service, searching for config parameters.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .