3 # timidity TiMidity++ software MIDI synthesizer for ALSA.
5 # chkconfig: 2345 89 12
6 # description: TiMidity++ is a software synthesizer. On this mode, TiMidity
7 # works purely as the software real-time MIDI render, that is as
8 # a software MIDI synth engine on ALSA.
11 # Source function library
12 . /etc/rc.d/init.d/functions
16 [ -f /etc/sysconfig/timidity ] && . /etc/sysconfig/timidity
19 # See how we were called.
22 # Check if the service is already running?
23 if [ ! -f /var/lock/subsys/timidity ]; then
24 msg_starting "TiMidity++ software MIDI synthesizer"
25 modprobe snd_seq 2>/dev/null
26 modprobe snd_seq_oss 2>/dev/null
27 daemon timidity -iAD -Os $TIMIDITY_OPTIONS
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/timidity
31 msg_already_running "TiMidity++ software MIDI synthesizer"
36 if [ -f /var/lock/subsys/timidity ]; then
37 msg_stopping "TiMidity++ software MIDI synthesizer"
39 rm -f /var/lock/subsys/timidity >/dev/null 2>&1
41 msg_not_running "TiMidity++ software MIDI synthesizer"
48 reload|force-reload|restart)
54 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"