use systemd modprobe service for speakup_soft

This commit is contained in:
William Hubbs 2021-06-29 11:12:26 -05:00 committed by Alexander Epaneshnikov
commit b7282c1a90

View file

@ -1,14 +1,13 @@
[Unit] [Unit]
Description=Software speech output for Speakup Description=Software speech output for Speakup
Documentation=man:espeakup(8) Documentation=man:espeakup(8)
Wants=systemd-udev-settle.service Wants=modprobe@speakup_soft.service
After=systemd-udev-settle.service sound.target After=modprobe@speakup_soft.service sound.target
[Service] [Service]
Type=forking Type=forking
PIDFile=/run/espeakup.pid PIDFile=/run/espeakup.pid
Environment="default_voice=" Environment="default_voice="
ExecStartPre=+modprobe speakup_soft
ExecStart=@bindir@/espeakup --default-voice=${default_voice} ExecStart=@bindir@/espeakup --default-voice=${default_voice}
ExecReload=kill -HUP $MAINPID ExecReload=kill -HUP $MAINPID
Restart=always Restart=always