The settings file provides default or system-wide settings.
The system-wide settings file is loaded by default but a custom settings file may be alternatively specified.
Using this avoids the need to add additional paramters to the command line when calling the Control program.
When this file is not specified any hardcoded defaults compiled into the program are used.
The location of the settings file is compile time specific and should be changed depending on the particular design of the system.
The default path for the control settings file is something like /etc/control/settings.
-
name_socketThis represents the file name used to construct the full socket path.
The file name represents the name of the file but any file extensions, such as.suffix, should likely usepath_socket_suffixto specify the file extension.When not defined the compiled in default is used.
The default socket path directory is generallydefaultbut this could be changed during compile time.This is required to not be empty so when the Object
path_socketis defined without any Content, then an error is expected to be thrown.This is used along with the
path_socket,path_socket_prefix, and thepath_socket_suffixto construct the socket file. -
path_socketThis represents the directory path to the socket file provided by the
controllerorinitservice.
This directory path is separate from the file name part so that the name can be more dynamically constructed without having to specify a full directory path each time.When not defined the compiled in default is used.
The default socket path directory is generally/var/run/controllerbut this could be changed during compile time.When the Object
path_socketis defined without any Content, then no path is added (resulting in the socket relative to the callers current working directory).This is used along with the
path_socket_prefix, thepath_socket_suffix, and thename_socketto construct the socket file.
A full socket path might look something like/var/run/controller/controller-default.socket.It is common for the
controllerprogram to be compiled as aninitprogram.
In this case it may be common for the full socket path to instead be something more like/var/run/init/init-default.socket. -
path_socket_prefixThis represents a prefix used to construct the full socket path.
This prefix is prepended to the socket file name.When not defined the compiled in default is used.
The default path prefix is generallycontroller-but this could be changed during compile time.When the Object
path_socket_prefixis defined without any Content, then no prefix is prepended.This is used along with the
path_socket, thepath_socket_suffix, and thename_socketto construct the socket file. -
path_socket_suffixThis represents a suffix used to construct the full socket path.
This suffix is appended to the socket file name.When not defined the compiled in default is used.
The default path suffix is generally.socketbut this could be changed during compile time.When the Object
path_socket_suffixis defined without any Content, then no suffix is appended.This is used along with the
path_socket, thepath_socket_prefix, and thename_socketto construct the socket file.