'\" t .TH "ELOGIND\&.SYNTAX" "7" "" "elogind 239.3" "elogind.syntax" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" elogind.syntax \- General syntax of elogind configuration files .SH "INTRODUCTION" .PP This page describes the basic principles of configuration files used by \fBelogind\fR(1) and related programs for: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} elogind unit files, see \fBelogind.unit\fR(5), \fBelogind.service\fR(5), \fBelogind.socket\fR(5), \fBelogind.device\fR(5), \fBelogind.mount\fR(5), \fBelogind.automount\fR(5), \fBelogind.swap\fR(5), \fBelogind.target\fR(5), \fBelogind.path\fR(5), \fBelogind.timer\fR(5), \fBelogind.slice\fR(5), \fBelogind.scope\fR(5) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} daemon config files, see \fBelogind-system.conf\fR(5), \fBelogind-user.conf\fR(5), \fBlogind.conf\fR(5), \fBjournald.conf\fR(5), \fBjournal-remote.conf\fR(5), \fBjournal-upload.conf\fR(5), \fBelogind-sleep.conf\fR(5), \fBtimesyncd.conf\fR(5) .RE .PP The syntax is inspired by \m[blue]\fBXDG Desktop Entry Specification\fR\m[]\&\s-2\u[1]\d\s+2 \&.desktop files, which are in turn inspired by Microsoft Windows \&.ini files\&. .PP Each file is a plain text file divided into sections, with configuration entries in the style \fIkey\fR=\fIvalue\fR\&. Empty lines and lines starting with "#" or ";" are ignored, which may be used for commenting\&. .PP Lines ending in a backslash are concatenated with the following line while reading and the backslash is replaced by a space character\&. This may be used to wrap long lines\&. The limit on line length is very large (currently 1 MB), but it is recommended to avoid such long lines and use multiple directives, variable substitution, or other mechanism as appropriate for the given file type\&. When a comment line or lines follow a line ending with a backslash, the comment block is ignored, so the continued line is concatenated with whatever follows the comment block\&. .PP \fBExample\ \&1.\ \&\fR .sp .if n \{\ .RS 4 .\} .nf [Section A] KeyOne=value 1 KeyTwo=value 2 # a comment [Section B] Setting="something" "some thing" "\&..." KeyTwo=value 2 \e value 2 continued [Section C] KeyThree=value 2\e # this line is ignored ; this line is ignored too value 2 continued .fi .if n \{\ .RE .\} .PP Various settings are allowed to be specified more than once, in which case the interpretation depends on the setting\&. Often, multiple settings form a list, and setting to an empty value "resets", which means that previous assignments are ignored\&. When this is allowed, it is mentioned in the description of the setting\&. Note that using multiple assignments to the same value makes the file incompatible with parsers for the XDG \&.desktop file format\&. .SH "NOTES" .IP " 1." 4 XDG Desktop Entry Specification .RS 4 \%http://standards.freedesktop.org/desktop-entry-spec/latest/ .RE