mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
remove environment file
systemd heavily discourages to use it in unit files. instead users should use Drop-in files.
This commit is contained in:
parent
3714f98bbc
commit
ea49d31885
3 changed files with 1 additions and 9 deletions
|
|
@ -1 +0,0 @@
|
|||
default_voice=
|
||||
|
|
@ -6,10 +6,9 @@ After=systemd-udev-settle.service sound.target
|
|||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=@sysconfdir@/conf.d/espeakup.conf
|
||||
PIDFile=/run/espeakup.pid
|
||||
ExecStartPre=+modprobe speakup_soft
|
||||
ExecStart=@bindir@/espeakup --default-voice=${default_voice}
|
||||
ExecStart=@bindir@/espeakup
|
||||
ExecReload=kill -HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
|
||||
prefixdir = get_option('prefix')
|
||||
bindir = join_paths(prefixdir, get_option('bindir'))
|
||||
sysconfdir = join_paths(prefixdir, get_option('sysconfdir'))
|
||||
|
||||
unit_conf = configuration_data()
|
||||
|
||||
unit_conf.set('bindir', bindir)
|
||||
unit_conf.set('sysconfdir', sysconfdir)
|
||||
|
||||
service_file = configure_file(
|
||||
input : 'espeakup.service.in',
|
||||
|
|
@ -17,7 +15,3 @@ service_file = configure_file(
|
|||
install_data(service_file,
|
||||
install_dir : unitdir
|
||||
)
|
||||
|
||||
install_data('espeakup.conf',
|
||||
install_dir : join_paths(sysconfdir, 'conf.d')
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue