mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
add systemd unit
This commit is contained in:
parent
201ae667ee
commit
b5c1aef849
2 changed files with 17 additions and 0 deletions
1
autostart/systemd/espeakup.conf
Normal file
1
autostart/systemd/espeakup.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
default_voice=
|
||||
16
autostart/systemd/espeakup.service
Normal file
16
autostart/systemd/espeakup.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue