Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21258 - need init.d runscript start script in timidity portage.
Summary: need init.d runscript start script in timidity portage.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-19 12:05 UTC by Young-Ho Cha
Modified: 2004-02-10 01:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Young-Ho Cha 2003-05-19 12:05:14 UTC
timidity support "Alsa sequencer interface".

if Use -iA option, timidity works as virtual midi sequencer mode. (like yamaha
xg software synth in Windows)

I suggest install this script when use alsa flags.

--
#!/sbin/runscript
 
depend() {
        need alsasound
}
 
start() {
        ebegin "Starting Timidity Virtual Midi Sequencer"
        start-stop-daemon --start --quiet --background --exec /usr/bin/timidity
-- -iA
        eend $?
}
 
stop() {
        ebegin "Stopping Timidity"
        start-stop-daemon --stop --quient --exec /usr/bin/timidity
}




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 rob holland (RETIRED) gentoo-dev 2003-06-02 13:15:35 UTC
Sounds good to me but I don't use timidity...anyone else care to comment? I'm happy to implement this if others agree it should go in...
Comment 2 J. Ellis (RETIRED) gentoo-dev 2003-06-21 04:32:21 UTC
Is it multi-user safe? That would be my first concern.
Comment 3 Jens Schittenhelm 2004-01-27 09:47:36 UTC
Timidity currently doesn't compile against alsa-lib 1.0.1, but this script works with 0.9.8

Note that there is a small typo. Should be -quiet and not -quient
Comment 4 Brian Harring (RETIRED) gentoo-dev 2004-02-06 00:49:51 UTC
Actually, timidity _should_ now compile against alsalib-1.0 (I commited the fix about 2 weeks back).

So... is this multi user safe?  Still relevant?  
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 01:00:02 UTC
working on this right now...
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 01:50:47 UTC
Alright... I put together an init.d script with conf.d settings for command line options (-iA is always implied).  I tried to use sane default settings.  Please  test it out.  You can get it from the media-sound/timidity++/files/ directory (conf.d.timidity -> /etc/conf.d/timidity and similar for init.d).  Future emerges will install them by default with USE=alsa.  I also updated the alsasound init.d script (bug #30942) so that it loads snd-seq even with no hardware sequencers so timidity will work properly.