ALT Linux Bugzilla
– Attachment 3678 Details for
Bug 20433
Отсутствует init скрипт для timidity
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
initial initscript sketch
timidity.init (text/plain), 1.61 KB, created by
Michael Shigorin
on 2009-07-20 18:29:30 MSD
(
hide
)
Description:
initial initscript sketch
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2009-07-20 18:29:30 MSD
Size:
1.61 KB
patch
obsolete
>#!/bin/sh ># ># timidity Start TiMidity++ as a service ># ># chkconfig: - 90 10 ># description: MIDI softsynth service ># processname: timidity ># config: /etc/timidity.cfg ># pidfile: /var/run/timidity.pid > ># Do not load RH compatibility interface. >WITHOUT_RC_COMPAT=1 > ># Source function library. >. /etc/init.d/functions > >PIDFILE=/var/run/timidity.pid >LOCKFILE=/var/lock/subsys/timidity >RETVAL=0 > >start() >{ > test -n "$TIMIDITY_PCM_NAME" && export TIMIDITY_PCM_NAME > #start-stop-daemon --start --background --chdir /usr/share/timidity \ > #--chuid timidity:audio --make-pidfile --pidfile /var/run/timidity.pid \ > #--exec /usr/bin/timidity -- -iA ${TIMIDITY_OPTS} ## see also #20433 > start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- timidity -iA $TIMIDITY_OPTS > RETVAL=$? > return $RETVAL >} > >stop() >{ > stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- timidity > RETVAL=$? > return $RETVAL >} > >restart() >{ > stop > start >} > >reload() >{ > msg_reloading timidity > stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP -- timidity > RETVAL=$? > return $RETVAL >} > ># See how we were called. >case "$1" in > start) > start > ;; > stop) > stop > ;; > reload) > reload > ;; > restart) > restart > ;; > condstop) > if [ -e "$LOCKFILE" ]; then > stop > fi > ;; > condrestart) > if [ -e "$LOCKFILE" ]; then > restart > fi > ;; > condreload) > if [ -e "$LOCKFILE" ]; then > reload > fi > ;; > status) > status --pidfile "$PIDFILE" --expect-user root -- timidity > RETVAL=$? > ;; > *) > msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}" > RETVAL=1 >esac > >exit $RETVAL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 20433
:
3678
|
3741
|
3742
|
3818