add Environment directive in systemd unit

This commit is contained in:
Alexander Epaneshnikov 2021-06-17 11:29:35 +03:00
commit 983b783cdf
No known key found for this signature in database
GPG key ID: 1736C918F59A5673

View file

@ -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