Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Dec 2021 11:53:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 182150] Moused start up with moused_enable="NO" into rc.conf
Message-ID:  <bug-182150-227-UJxtzHkumW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-182150-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-182150-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D182150

--- Comment #2 from Oleg Ginzburg <olevole@olevole.ru> ---
The correct setting for disabling moused, mentioned in `man rc.conf`:

moused_nondefault_enable=3D"NO"


More details:

/etc/devd.conf:
--
notify 100 {
        match "system" "DEVFS";
        match "subsystem" "CDEV";
        match "type" "CREATE";
        match "cdev" "atp[0-9]+";

        action "service moused quietstart $cdev";
};

notify 100 {
        match "system" "DEVFS";
        match "subsystem" "CDEV";
        match "type" "CREATE";
        match "cdev" "ums[0-9]+";

        action "service moused quietstart $cdev";
};

notify 100 {
        match "system" "DEVFS";
        match "subsystem" "CDEV";
        match "type" "CREATE";
        match "cdev" "wsp[0-9]+";

        action "service moused quietstart $cdev";
};
--

/etc/rc.d/moused processing when additional args passed:
--

if [ -n "$2" ]; then
        eval moused_$2_enable=3D\${moused_$2_enable-${moused_nondefault_ena=
ble}}
        rcvar=3D"moused_${2}_enable"
        pidfile=3D"${pidprefix}.$2.pid"
        pidarg=3D"-I $pidfile"
fi
--


This is an opportunity for multiport configurations.

Therefore, a complete disabling of the 'moused' service should be done thro=
ugh:


sysrc moused_enable=3DNO
sysrc moused_nondefault_enable=3DNO

or per port:

sysrc moused_ums0_enable=3DNO

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-182150-227-UJxtzHkumW>