Re: questionable feature- rcvar woes



In the last episode (Nov 28), Andrei Kolu said:
Something is wrong with rcvar or I am just blatant.

For example:

1) Enable powerd in rc.conf
# echo 'enable_powerd="YES"' >> /etc/rc.conf
2) Launch powerd
# /etc/rc.d/powerd start
Starting powerd.
3) And stopping it.
# /etc/rc.d/powerd stop
Stopping powerd.

Everything looks fine, but when I disable powerd in rc.conf then problem
arise.

1) Disable powerd in rc.conf- comment it out.
# enable_powerd="YES"
2) Stop powerd
# /etc/rc.d/powerd stop
...silence- nothing in logs either.

What? Not even a warning message and powerd is actually running- why
I have to reboot to disable it? I know that I can stop it by enabling
it in rc.conf but what the point? Same problem when I want to start
some service without appropriate line in rc.conf. I'd prefer to see
somekind of warning about misconfigured rc.conf or at least
information about what's going on in reality.

Try "/etc/rc.d/powerd forcestop". What happens during startup and
shutdown is that all rc.d scripts are run with "start" or "stop"
arguments, and only the ones that have been enabled do anything.

--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: questionable feature- rcvar woes
    ... Enable powerd in rc.conf ... Disable powerd in rc.conf- comment it out. ... Not even a warning message and powerd is actually running- why I have ...
    (freebsd-stable)
  • questionable feature- rcvar woes
    ... Enable powerd in rc.conf ... Launch powerd ... Disable powerd in rc.conf- comment it out. ... Not even a warning message and powerd is actually running- why I have to ...
    (freebsd-stable)
  • Re: questionable feature- rcvar woes
    ... Disable powerd in rc.conf- comment it out. ... habit of doing 2) then 1), or get in the habit of using forcestop. ... Custom programming, network design, systems and network consulting services ...
    (freebsd-stable)
  • Re: questionable feature- rcvar woes
    ... Enable powerd in rc.conf ... Launch powerd ... Disable powerd in rc.conf- comment it out. ... by /etc/rc.d/powerd script', using this semantics actually explains all ...
    (freebsd-stable)