public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Another openrc enigma: need firewalld
@ 2016-09-10 23:01 Ian Zimmerman
  2016-09-11  9:39 ` Tom H
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zimmerman @ 2016-09-10 23:01 UTC (permalink / raw
  To: gentoo-user

Started getting this 'need firewalld' message on boot, out of the blue,
after reinstalling some packages which contain initscripts, to get rid
of the 'uses runscript' messages.  (which mostly worked, but the udev
and net.lo scripts are still not fixed)

Feels like a whack-a-mole game right now :)

I most defnitely do _not_ need firewalld, or another opaque daemon that
"saves" me from editing one or two config files.  My iptables rules are
comfortably loaded from pre_up() in conf.d/net.

-- 
Please *no* private Cc: on mailing lists and newsgroups
Why does the arrow on Hillary signs point to the right?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Another openrc enigma: need firewalld
  2016-09-10 23:01 [gentoo-user] Another openrc enigma: need firewalld Ian Zimmerman
@ 2016-09-11  9:39 ` Tom H
  2016-09-12 18:22   ` [gentoo-user] openrc functions or aliases [Was: Another openrc enigma: need firewalld] Ian Zimmerman
  0 siblings, 1 reply; 6+ messages in thread
From: Tom H @ 2016-09-11  9:39 UTC (permalink / raw
  To: Gentoo User

On Sat, Sep 10, 2016 at 7:01 PM, Ian Zimmerman <itz@primate.net> wrote:
>
> Started getting this 'need firewalld' message on boot, out of the blue,
> after reinstalling some packages which contain initscripts, to get rid
> of the 'uses runscript' messages. (which mostly worked, but the udev
> and net.lo scripts are still not fixed)

It comes from

[ "$IFACE" != "lo" ] && need firewalld

in

/lib/netifrc/net/firewalld

I've commented it out on my systems. A bug's been filed (I can't
remember its number).


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] openrc functions or aliases [Was: Another openrc enigma: need firewalld]
  2016-09-11  9:39 ` Tom H
@ 2016-09-12 18:22   ` Ian Zimmerman
  2016-09-12 22:30     ` Neil Bothwick
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zimmerman @ 2016-09-12 18:22 UTC (permalink / raw
  To: gentoo-user

On 2016-09-11 05:39, Tom H wrote:

> [ "$IFACE" != "lo" ] && need firewalld
> 
> in
> 
> /lib/netifrc/net/firewalld

The whole shell function reads like this:

firewalld_depend()
{
        after interface
        before dhcp
        program firewall-cmd
        [ "$IFACE" != "lo" ] && need firewalld
}

Do you know where "after", "before", "need", and "program" are defined?

Or teach me how to fish and point me to where all this is documented?
Presumably some documents related to openrc.

-- 
Please *no* private Cc: on mailing lists and newsgroups
Why does the arrow on Hillary signs point to the right?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] openrc functions or aliases [Was: Another openrc enigma: need firewalld]
  2016-09-12 18:22   ` [gentoo-user] openrc functions or aliases [Was: Another openrc enigma: need firewalld] Ian Zimmerman
@ 2016-09-12 22:30     ` Neil Bothwick
  2016-09-13  2:53       ` [gentoo-user] " Ian Zimmerman
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Bothwick @ 2016-09-12 22:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On Mon, 12 Sep 2016 11:22:54 -0700, Ian Zimmerman wrote:

> The whole shell function reads like this:
> 
> firewalld_depend()
> {
>         after interface
>         before dhcp
>         program firewall-cmd
>         [ "$IFACE" != "lo" ] && need firewalld
> }
> 
> Do you know where "after", "before", "need", and "program" are defined?
> 
> Or teach me how to fish and point me to where all this is documented?

/usr/share/doc/openrc-0.21.7/guide.md.bz2


-- 
Neil Bothwick

Got kleptomania? Be sure to take something for it.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: openrc functions or aliases [Was: Another openrc enigma: need firewalld]
  2016-09-12 22:30     ` Neil Bothwick
@ 2016-09-13  2:53       ` Ian Zimmerman
  2016-09-14 18:56         ` Ian Zimmerman
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zimmerman @ 2016-09-13  2:53 UTC (permalink / raw
  To: gentoo-user

On 2016-09-12 23:30, Neil Bothwick wrote:

> > firewalld_depend()
> > {
> >         after interface
> >         before dhcp
> >         program firewall-cmd
> >         [ "$IFACE" != "lo" ] && need firewalld
> > }
> /usr/share/doc/openrc-0.21.7/guide.md.bz2

Thanks.

I am still confused, though.  If "needs" declares a hard dependency,
shouldn't this cause the initscript (in this case net.*) to fail, rather
than print a misleading message?

Then the bug would be more severe, of course, but by the same token it
would probably have been fixed by now :)

-- 
Please *no* private Cc: on mailing lists and newsgroups
Why does the arrow on Hillary signs point to the right?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: openrc functions or aliases [Was: Another openrc enigma: need firewalld]
  2016-09-13  2:53       ` [gentoo-user] " Ian Zimmerman
@ 2016-09-14 18:56         ` Ian Zimmerman
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Zimmerman @ 2016-09-14 18:56 UTC (permalink / raw
  To: gentoo-user

On 2016-09-12 19:53, Ian Zimmerman wrote:

> I am still confused, though.  If "needs" declares a hard dependency,
> shouldn't this cause the initscript (in this case net.*) to fail,
> rather than print a misleading message?

I also still don't understand why I don't get this message on my other
system, despite having almost identical configuration (firewalld.sh
exists, firewalld package is not installed, all the same versions).

-- 
Please *no* private Cc: on mailing lists and newsgroups
Why does the arrow on Hillary signs point to the right?


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-14 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-10 23:01 [gentoo-user] Another openrc enigma: need firewalld Ian Zimmerman
2016-09-11  9:39 ` Tom H
2016-09-12 18:22   ` [gentoo-user] openrc functions or aliases [Was: Another openrc enigma: need firewalld] Ian Zimmerman
2016-09-12 22:30     ` Neil Bothwick
2016-09-13  2:53       ` [gentoo-user] " Ian Zimmerman
2016-09-14 18:56         ` Ian Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox