1- .\" Automatically generated by Pandoc 2.19.2
1+ .\" Automatically generated by Pandoc 3.1.6
22.\"
33.\" Define V font for inline verbatim, using C font in formats
44.\" that render this, and otherwise B font.
@@ -45,7 +45,10 @@ is redirected from the physical disc to RAM, reducing wear to the
4545physical disc and improving speed and responsiveness.
4646.SH SETUP
4747.PP
48- \f[ V ] /etc/asd.conf\f[ R ] contains all user-managed settings.
48+ The \f[ V ] asd\f[ R ] configuration file contains all user-managed settings.
49+ See the entry on \f[ V ] ASDCONF\f[ R ] in the
50+ \f[ V ] ENVIRONMENT VARIABLES\f[ R ] section for information on the default
51+ \f[ V ] asd\f[ R ] configuration file location.
4952The configuration file location can be overridden by specifying a
5053pathname in the \f[ V ] ASDCONF\f[ R ] environment variable.
5154For instance, to load \f[ V ] asd\f[ R ] settings from
@@ -57,9 +60,9 @@ $ ASDCONF=/here/for/some/reason/lives/asd.conf asd <subcommand>
5760\f[ R ]
5861.fi
5962.PP
60- \f[B] Note \f[ R ] that edits made to \f[ V ]/etc/ asd.conf \f[ R ] while
61- \f[ V ] asd\f[ R ] is running will be applied only after \f[ V ] asd\f[ R ] has
62- been restarted.
63+ \f[B] Note \f[ R ] that edits made to the \f[ V ] asd\f[ R ] configuration file
64+ while \f[ V ] asd\f[ R ] is running will be applied only after \f[ V ] asd\f[ R ]
65+ has been restarted.
6366.PP
6467In the \f[ V ] asd\f[ R ] configuration file, you may define the following
6568variables:
@@ -75,7 +78,10 @@ list, \f[V]asd\f[R] will complain and bail out.
7578A path that lives on a tmpfs or zram mount.
7679This is where \f[ V ] asd\f[ R ] will store the data eventually synchronized
7780back to the physical disk.
78- By default, \f[ V ] asd\f[ R ] sets \f[ V ] VOLATILE=/tmp\f[ R ] .
81+ By default, when running as \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is
82+ unset or set to a false value, \f[ V ] asd\f[ R ] sets
83+ \f[ V ] VOLATILE=/tmp\f[ R ] .
84+ Otherwise, \f[ V ] VOLATILE\f[ R ] defaults to \f[ V ] ASDRUNDIR\f[ R ] .
7985\f[B] Note \f[ R ] that it is a fatal error to set \f[ V ] VOLATILE\f[ R ] to a
8086path that does not live on a tmpfs or zram mount.
8187.TP
97103\f[ V ] DEBUG\f[ R ]
98104A boolean variable controlling whether to issue debugging output.
99105.PP
100- \f[B] Note \f[ R ] that the default value of \f[ V ] /tmp\f[ R ] should work just
101- fine for the \f[ V ] VOLATILE\f[ R ] setting.
106+ \f[B] Note \f[ R ] that the default values of
107+ \f[ V ] /tmp\f[ R ] /\f[ V ] ASDRUNDIR\f[ R ] should work just fine for the
108+ \f[ V ] VOLATILE\f[ R ] setting.
102109If using \f[ V ] bleachbit\f[ R ] (https://www.bleachbit.org/), do NOT invoke
103110it with the \f[ V ] --clean system.tmp\f[ R ] switch or you will remove a key
104111dot file (\f[ V ] .foo\f[ R ] ) from \f[ V ] /tmp\f[ R ] that \f[ V ] asd\f[ R ] needs
@@ -133,34 +140,42 @@ WHATTOSYNC=(
133140.TP
134141\f[ V ] ASDCONF\f[ R ]
135142Path to the \f[ V ] asd\f[ R ] configuration file.
136- Defaults to \f[ V ] /etc/asd.conf\f[ R ] when \f[ V ] ASDNOV1PATHS\f[ R ] is
137- disabled; otherwise, defaults to \f[ V ] ${ASDCONFDIR}/asd.conf\f[ R ] .
143+ Defaults to \f[ V ] /etc/asd.conf\f[ R ] when \f[ V ] asd\f[ R ] is running as
144+ \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is unset or set to a false
145+ value; otherwise, defaults to \f[ V ] ${ASDCONFDIR}/asd.conf\f[ R ] .
138146.TP
139147\f[ V ] ASDNOV1PATHS\f[ R ]
140148A boolean variable controlling whether to use \[lq ] version 1\[rq ] paths
141149or not.
142- When set to a false value, \f[B] FIXME \f[ R ] .
150+ When set to a false value, \f[ V ] asd\f[ R ] will use old-style defaults for
151+ its daemon file (\f[ V ] /run/asd\f[ R ] ), lock file
152+ (\f[ V ] /run/asd-lock\f[ R ] ), and configuration file
153+ (\f[ V ] /etc/asd.conf\f[ R ] ).
143154\f[B] NOTE \f[ R ] that this variable is ignored when \f[ V ] asd\f[ R ] is
144155running as a non-\f[ V ] root\f[ R ] user.
145156Defaults to disabled (effectively, \f[ V ] ASDNOV1PATHS=0\f[ R ] ).
146157.TP
147158\f[ V ] ASDCONFDIR\f[ R ]
148159Parent directory of \f[ V ] asd.conf\f[ R ] if \f[ V ] ASDCONF\f[ R ] is not
149160defined.
150- Ignored when running as \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is set
151- to a false value.
152- Otherwise, defaults to \f[ V ] CONFIGURATION_DIRECTORY\f[ R ] (which is set
153- when \f[ V ] asd\f[ R ] runs under systemd), falling back to
154- \f[ V ] /etc/asd\f[ R ] when running as \f[ V ] root\f[ R ] and
161+ Ignored when running as \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is
162+ unset or set to a false value.
163+ Otherwise, defaults to the first (leftmost) of the colon-separated paths
164+ in the \f[ V ] CONFIGURATION_DIRECTORY\f[ R ] environment variable (which is
165+ set when \f[ V ] asd\f[ R ] runs under systemd and the \f[ V ] asd.service\f[ R ]
166+ unit defines at least one \f[ V ] ConfigurationDirectory\f[ R ] entry),
167+ falling back to \f[ V ] /etc/asd\f[ R ] when running as \f[ V ] root\f[ R ] and
155168\f[ V ] ${XDG_CONFIG_DIR}/asd\f[ R ] when running as a non-\f[ V ] root\f[ R ]
156169user.
157170.TP
158171\f[ V ] ASDRUNDIR\f[ R ]
159172Directory where \f[ V ] asd\f[ R ] should store runtime state.
160- Ignored when running as \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is set
161- to a false value.
162- Otherwise, defaults to \f[ V ] RUNTIME_DIRECTORY\f[ R ] (which is set when
163- \f[ V ] asd\f[ R ] runs under systemd), falling back to \f[ V ] /run/asd\f[ R ]
173+ Ignored when running as \f[ V ] root\f[ R ] and \f[ V ] ASDNOV1PATHS\f[ R ] is
174+ unset or set to a false value.
175+ Otherwise, defaults to the first (leftmost) of the colon-separated paths
176+ in the \f[ V ] RUNTIME_DIRECTORY\f[ R ] (which is set when \f[ V ] asd\f[ R ] runs
177+ under systemd and the \f[ V ] asd.service\f[ R ] unit defines at least one
178+ \f[ V ] RuntimeDirectory\f[ R ] entry), falling back to \f[ V ] /run/asd\f[ R ]
164179when running as \f[ V ] root\f[ R ] and \f[ V ] ${XDG_RUNTIME_DIR}/asd\f[ R ] when
165180running as a non-\f[ V ] root\f[ R ] user.
166181.TP
@@ -403,6 +418,12 @@ if a hung process has something open there, it can be messy.
403418Project page: https://github.com/graysky2/anything-sync-daemon
404419.IP \[bu ] 2
405420Wiki page: https://wiki.archlinux.org/index.php/Anything-sync-daemon
421+ .SH SEE ALSO
422+ .PP
423+ \f[ V ] bash\f[ R ] (1), \f[ V ] cron\f[ R ] (8), \f[ V ] crontab\f[ R ] (1),
424+ \f[ V ] crontab\f[ R ] (5), \f[ V ] mount\f[ R ] (5), \f[ V ] systemd.exec\f[ R ] (5),
425+ \f[ V ] systemd.service\f[ R ] (5), \f[ V ] systemd.timer\f[ R ] (5),
426+ \f[ V ] systemd.unit\f[ R ] (5)
406427.SH AUTHOR
407428.PP
408429graysky (graysky AT archlinux DOT us)
0 commit comments