Ricopio qui quello che ho fatto.
[Unit]
Description=FluidSynth Synthesizer
After=syslog.target
[Service]
ExecStart=/usr/bin/fluidsynth -s -a alsa /usr/share/sounds/sf2/FluidR3_GM.sf2
#Restart=restart-always
[Install]
WantedBy=multi-user.target
# systemctl daemon-reload
# systemctl start fluidsynth.service
Ma crasha.
Attenzione: il comando di fluidsynth funziona benissimo se lo lancio da terminale.
# systemctl status -l fluidsynth.service
fluidsynth.service - FluidSynth Synthesizer
Loaded: loaded (/etc/systemd/system/fluidsynth.service; disabled)
Active: inactive (dead)
set 28 22:05:12 fede-xps systemd[1]: Starting FluidSynth Synthesizer...
set 28 22:05:12 fede-xps systemd[1]: Started FluidSynth Synthesizer.
set 28 22:05:13 fede-xps fluidsynth[26958]: fluidsynth: warning: Requested a period size of 64, got 940 instead
set 28 22:05:13 fede-xps fluidsynth[26958]: fluidsynth: warning: Requested 16 periods, got 8 instead
set 28 22:05:13 fede-xps fluidsynth[26958]: FluidSynth version 1.1.6
set 28 22:05:13 fede-xps fluidsynth[26958]: Copyright (C) 2000-2012 Peter Hanappe and others.
set 28 22:05:13 fede-xps fluidsynth[26958]: Distributed under the LGPL license.
set 28 22:05:13 fede-xps fluidsynth[26958]: SoundFont(R) is a registered trademark of E-mu Systems, Inc.
set 28 22:05:13 fede-xps fluidsynth[26958]: Type 'help' for help topics.
set 28 22:05:13 fede-xps fluidsynth[26958]: >