]> git.pld-linux.org Git - packages/TiMidity++.git/commitdiff
- TiMidity-alsaseq init script and sysconfig file
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 15 Sep 2004 17:07:25 +0000 (17:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    timidity.init -> 1.1
    timidity.sysconfig -> 1.1

timidity.init [new file with mode: 0644]
timidity.sysconfig [new file with mode: 0644]

diff --git a/timidity.init b/timidity.init
new file mode 100644 (file)
index 0000000..a538961
--- /dev/null
@@ -0,0 +1,58 @@
+#!/bin/sh
+#
+# timidity     TiMidity++ software MIDI synthesizer for ALSA.
+#
+# chkconfig:   2345 89 12
+# description: TiMidity++ is a software synthesizer. On this mode, TiMidity
+#              works purely as the software real-time MIDI render, that is as
+#              a software MIDI synth engine on ALSA.
+#
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get service config
+TIMIDITY_OPTIONS=""
+[ -f /etc/sysconfig/timidity ] && . /etc/sysconfig/timidity
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/timidity ]; then
+               msg_starting "TiMidity++ software MIDI synthesizer"
+               modprobe snd_seq 2>/dev/null
+               modprobe snd_seq_oss 2>/dev/null
+                daemon timidity -iAD -Os $TIMIDITY_OPTIONS
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/timidity
+       else
+               msg_already_running "TiMidity++ software MIDI synthesizer"
+       fi
+       ;;
+  stop)
+       # Stop daemons.
+       if [ -f /var/lock/subsys/timidity ]; then
+               msg_stopping "TiMidity++ software MIDI synthesizer"
+               killproc timidity
+               rm -f /var/lock/subsys/timidity >/dev/null 2>&1
+       else
+               msg_not_running "TiMidity++ software MIDI synthesizer"
+       fi
+       ;;
+  status)
+       status timidity
+       exit $?
+       ;;
+  reload|force-reload|restart)
+       $0 stop
+       $0 start
+       RETVAL=$?
+       ;;
+  *)
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
+esac
+
+exit $RETVAL
diff --git a/timidity.sysconfig b/timidity.sysconfig
new file mode 100644 (file)
index 0000000..e94bd32
--- /dev/null
@@ -0,0 +1,7 @@
+# Customized settings for TiMidity
+
+# Define nice level for TiMidity
+SERVICE_RUN_NICE_LEVEL="+5"
+
+# Extra options for TiMidity
+TIMIDITY_OPTIONS="-B2,8 -q0/0 -k0"
This page took 0.025351 seconds and 4 git commands to generate.