Hi<div><br></div><div>you are my last resource.</div><div>I'm trying to start fluidsynth in daemon mode (-s) at the startup. At first I tried to adapt a guide for Arch but I realized that in Debian (sid) the configuration is different:</div><div><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760210">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760210</a></div><div><br></div><div>I'm using systemd. I've tried several times to write a proper fluidsynth.service but I always failed.</div><div>Here's my last try:</div><div><br></div><div>--------------->----------------------------->----------------------------></div><div><br></div><div><div>[Unit]</div><div>Description=FluidSynth Synthesizer</div><div>After=syslog.target</div><div>Before=sound.target</div><div>Requires=dbus.socket</div><div><br></div><div>[Service]</div><div>Type = forking</div><div>ExecStart=/usr/bin/fluidsynth -s -a alsa /usr/share/sounds/sf2/FluidR3_GM.sf2</div><div>Environment=DISPLAY=:0</div><div>#Restart=always</div><div>#RestartSec=5</div><div><br></div><div>[Install]</div><div>WantedBy=default.target</div><div>#WantedBy=multi-user.target</div></div><div><br></div><div>----------------->-------------------------->-----------------------------></div><div><br></div><div>This is the error:</div><div><br></div><div># systemctl status -l fluidsynth.service</div><div>● fluidsynth.service - FluidSynth Synthesizer</div><div>   Loaded: loaded (/etc/systemd/system/fluidsynth.service; disabled)</div><div>   Active: inactive (dead)</div><div><br></div><div>ott 02 19:56:00 fede-xps systemd[1]: Started FluidSynth Synthesizer.</div><div>ott 02 20:13:51 fede-xps systemd[1]: Stopped FluidSynth Synthesizer.</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: fluidsynth: warning: Requested a period size of 64, got 940 instead</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: fluidsynth: warning: Requested 16 periods, got 8 instead</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: FluidSynth version 1.1.6</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: Copyright (C) 2000-2012 Peter Hanappe and others.</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: Distributed under the LGPL license.</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: SoundFont(R) is a registered trademark of E-mu Systems, Inc.</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: Type 'help' for help topics.</div><div>ott 02 22:09:05 fede-xps fluidsynth[24181]: ></div><div><br></div><div>The  error about the period size can be avoided setting "-z 940", but I don't understand why this error appears only when fluidsynth is started as a systemd service and not when I run that command in a terminal. I guess that it may be related to when the command is launched in systemd levels. I think that I should play with the values of After, Before and Requires in the Unit section.</div><div>But I hope that someone in this list can help me, I don't have time currently to study systemd (and it would be probably too complex for me).</div><div><br></div><div>Thank you in advance.</div><div>Federico</div><div><br></div>