Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Nov 8 '11 at 0:39

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

2 Answers 2

up vote 11 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.