FS#41156 - [fluidsynth] systemd service file with environment file
Attached to Project:
Arch Linux
Opened by Leonard de Ruijter (leonardder) - Thursday, 10 July 2014, 07:46 GMT
Last edited by Ray Rashif (schivmeister) - Thursday, 10 July 2014, 17:40 GMT
Opened by Leonard de Ruijter (leonardder) - Thursday, 10 July 2014, 07:46 GMT
Last edited by Ray Rashif (schivmeister) - Thursday, 10 July 2014, 17:40 GMT
|
Details
In the current fluidsynt package, a systemd service file is
included which requires manual tweaking in order to work. To
me, this feels a bit ugly.
I have the following suggestion: * add /etc/default/fluidsynth to the package which contains SOUNDFONT="" * Add "EnvironmentFile=/etc/default/fluidsynth" to the [service] section for the systemd service * change "ExecStart=/usr/bin/fluidsynth -is -a alsa -m alsa_seq -r 48000 # append soundfont path here" to "ExecStart=/usr/bin/fluidsynth -is -a alsa -m alsa_seq -r 48000 $SOUNDFONT" This way, the systemd service doesn't have to be changed. IN any case, /usr/lib/systemd/system should be used for static systemd services, not for services which require patching before working. |
This task depends upon
Anyway, the configuration will happen in /etc/conf.d as per convention, so basically I'm just going to bring back the old init-style conf with OPTS and a SOUNDFONT variable.