add systemd unit

This commit is contained in:
Alexander Epaneshnikov 2020-04-26 19:26:46 +03:00
commit b5c1aef849
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1 @@
default_voice=

View file

@ -0,0 +1,16 @@
[Unit]
Description=Software speech output for Speakup
# espeakup needs to start after the audio devices appear, hopefully this should go away in the future
Wants=systemd-udev-settle.service
After=systemd-udev-settle.service sound.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/espeakup
PIDFile=/run/espeakup.pid
ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=sound.target