#!/sbin/runscript #this requires any soundfont in the directory /usr/share/sounds/sf2/, e.g. media-sound/fluid-soundfont pidfile=/var/run/fluidsynth.pid executable=/usr/bin/fluidsynth soundfount_dir=/usr/share/sounds/sf2/ args="-s -i -a alsa ${soundfount_dir}*" depend() { need alsasound } start() { ebegin "Starting fluidsynth" start-stop-daemon --background --start --pidfile $pidfile --make-pidfile --exec $executable -- $args eend $? } stop() { ebegin "Stopping fluidsynth" start-stop-daemon --stop --pidfile $pidfile eend $? }