Configuration¶
For configuration, Marche reads all *.conf files in its configuration
directory, which is normally /etc/marche (but can be overridden by invoking
the daemon with the -c option). Configuration files are in INI format, and
all the found files are merged together to form the Marche configuration.
General configuration of marched¶
The general configuration is usually placed into a single file named
/etc/marche/general.conf.
- [general]
- user
Default: none
The user as which marched will run. Normally, this can be kept empty, so that the
rootuser is used, which is necessary for most jobs. If no user is given, the current user on startup will be used.
- group
Default: none
The group as which marched will run. If no group is given, the current group on startup will be used.
- piddir
Default:
/var/runThe directory where the daemon’s pid file (marched.pid) will be stored.
- logdir
Default:
/var/logThe directory where all the log files will be stored, in a subdirectory called
marcheand split by day.
- interfaces
Default:
xmlrpc, udpA comma-separated list of the interfaces that should be started. A list of all available interfaces is given in Available interfaces.
- unauth_level
Default:
displayA permission level (see the description of permissions) to assign to users that are not authenticated.
Can be the special
nonelevel to disable everything for these users.
Interface configuration¶
The interface configuration is usually also done in general.conf.
- [interface.xxx]
Each section called
interface.xxxprovides configuration for an interface with the namexxx. (To be used, interfaces must be enabled in theinterfacesvalue in the[general]section.) For details about configuring the different interfaces, see the interface documentation.
Authenticator configuration¶
The management of user/password pairs and their respective permission levels is done by authenticators, of which multiple types can be configured in sections.
If no authenticators are configured, the daemon will accept any clients and assign them the highest permission level.
- [auth.xxx]
Each section called
auth.xxxconfigures an authenticator with the namexxx. For details about different authenticators, see the authenticator documentation.
Job configuration¶
The configuration for individual jobs is usually placed in separate files.
- [job.xxx]
Each section called
job.xxxconfigures a job calledxxx.The job name is arbitrary, but many jobs use it as a default for other configuration parameters. For example, for the
initjob, which controls services via an init script, the job name is the default value for the name of the init script.Each job section must have a value named
type, which selects the type of job to provide. A list of available job types, and their configuration parameters, is given in Available jobs.