[BRLTTY] How to send parameter to BRLTTY by systemd ?
Dave Mielke
dave at mielke.cc
Mon Jun 29 17:26:53 EDT 2015
[quoted lines by Mario Lang on 2015/06/29 at 22:24 +0200]
>These days, there is an even more convenient method which will lead to
>less conflicts on package upgrade: Whenever you want to change a
>configuration option from the default specified in /etc/brltty.conf, you
>can put that new setting in your own file which is called
>/etc/xdg/brltty.conf. If you restart brltty (presumably via systemd) it
A small typo. The file actually is: /etc/xdg/brltty/brltty.conf
Brltty looks in the /etc/xdg/brltty/ directory for all override files.
>However, since I usually hate it if people ask specific questions and
>receive answers that tell them they actually want something different,
>here is how you'd actually change what systemd runs: The brltty systemd
>service file is usually found in /lib/systemd/system/brltty.service.
>If you want to override settings from it, you can use a similar mechanism
>as described above for brltty. However, for systemd, you probably want
>to put your override file in /etc/systemd/system/brltty.service.
>You probably want to override the ExecStart systemd directive:
>
>/etc/systemd/system/brltty.service:
>
>[Service]
>ExecStart=/sbin/brltty -q -P /run/brltty.pid
I'd just like to emphasize - and I'm sure Mario would agree - that, while this
is the precise answer to your question, it's probably not what you really want
to do, and it's really a very bad idea. I'm quite sure that - as Mario stated
earlier - what you probably really want to do is define your settings in
/etc/xdg/brltty/brltty.conf.
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: Dave at Mielke.cc | Canada K2A 1H7 | http://FamilyRadio.org/
More information about the BRLTTY
mailing list