From nobody@FreeBSD.org  Sat May 29 17:46:27 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 49B111065675
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 May 2010 17:46:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 01DB58FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 May 2010 17:46:27 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4THkQoM012411
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 29 May 2010 17:46:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o4THkQCO012410;
	Sat, 29 May 2010 17:46:26 GMT
	(envelope-from nobody)
Message-Id: <201005291746.o4THkQCO012410@www.freebsd.org>
Date: Sat, 29 May 2010 17:46:26 GMT
From: Demelier David <demelier.david@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/mixer starts too late
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         147193
>Category:       conf
>Synopsis:       [patch] /etc/rc.d/mixer starts too late
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 29 17:50:01 UTC 2010
>Closed-Date:    Sat May 29 20:30:00 UTC 2010
>Last-Modified:  Sat May 29 20:31:56 UTC 2010
>Originator:     Demelier David
>Release:        8.0-RELEASE-p2
>Organization:
>Environment:
FreeBSD Abricot.malikania.fr 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Mon May 10 21:15:52 CEST 2010     root@Abricot.malikania.fr:/usr/obj/usr/src/sys/Abricot  i386

>Description:
When I use musicpd, sometimes I forget to pause/stop it before shutdown my computer. When FreeBSD boot the sound is maybe at a default value and was higher than my value I set in mixer so the sound was too loud. 

This is because actually the /etc/rc.d/mixer is started after musicpd, so to prevent this I made a little patch but, it works but I don't know if it's the best. See `How to fix'
>How-To-Repeat:

>Fix:
--- mixer.orig	2010-05-29 19:15:27.000000000 +0200
+++ mixer	2010-05-29 19:15:38.000000000 +0200
@@ -29,6 +29,7 @@
 
 # PROVIDE: mixer
 # REQUIRE: cleanvar
+# BEFORE: LOGIN
 # KEYWORD: nojail shutdown
 
 . /etc/rc.subr


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat May 29 19:44:58 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147193 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sat May 29 20:29:48 UTC 2010 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=147193 
Responsible-Changed-From-To: freebsd-rc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sat May 29 20:30:02 UTC 2010 
Responsible-Changed-Why:  

Blah ....  I keep forgetting that gnats doesn't have a concept of "abort."  

In any case, since musicpd is a port the correct solution would be for 
the rc.d script to have: 
REQUIRE: LOGIN mixer 

Feel free to contact the maintainer and ask for that modification.  


hth, 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147193 
>Unformatted:
