From 983b783cdff09766037b894ed01d5c8baa08e044 Mon Sep 17 00:00:00 2001 From: Alexander Epaneshnikov Date: Thu, 17 Jun 2021 11:29:35 +0300 Subject: [PATCH] add Environment directive in systemd unit --- services/systemd/espeakup.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/systemd/espeakup.service.in b/services/systemd/espeakup.service.in index cbec810..ec5f4da 100644 --- a/services/systemd/espeakup.service.in +++ b/services/systemd/espeakup.service.in @@ -7,8 +7,9 @@ After=systemd-udev-settle.service sound.target [Service] Type=forking PIDFile=/run/espeakup.pid +Environment="default_voice=" ExecStartPre=+modprobe speakup_soft -ExecStart=@bindir@/espeakup +ExecStart=@bindir@/espeakup --default-voice=${default_voice} ExecReload=kill -HUP $MAINPID Restart=always