Configuration variables
This section includes the following major subsections:
- Master host configuration variables
- Delegate host configuration variables
- Universal configuration variables
- Configuration file
Best practices for configuration files
The Control Center configuration file, /etc/default/serviced
, contains
Bash environment variables that are read by the serviced daemon startup
script. The following list describes recommended best practices for its
use and maintenance:
- When in doubt, make a backup. Before editing, making a backup copy of the configuration file is always the safest choice.
- Copy a variable, then edit the copy. If you need to revert a variable to its default value, you don't have to leave the file to look it up.
- Copy and edit a variable only if the default value needs to be changed. It's easier to troubleshoot problems when only non-default variables are copied and edited.
- Put the first character of the variable declaration in the first column of its line. It's easier to grep for settings when each one starts a line.
- Add customizations to the top of the file. Customizations at the end of the file or scattered throughout the file may be overlooked.
- In high-availability deployments, the contents of /etc/default/serviced on the master nodes must be identical. Use a utility like sum to compare the files quickly.