Re: [gentoo-user] Re: iptables wiki page questions

2020-08-14 Thread tastytea
On 2020-08-15 00:22- Grant Edwards 
wrote:

> On 2020-08-14, tastytea  wrote:
> 
> > rc-service runs the same service scripts that are in /etc/init.d/,
> > so it's the same. However the manpage of rc-service(8) mentions that
> > “Service scripts could be in different places on different
> > systems”, so the most compatible way would be to use rc-service.  
> 
> Oddly, the two usages are both within one example.  It appears that
> the author uses "/etc/init.d/iptables" for the "save" command and
> "rc-service iptables" for the "start" command.

In some places “rc-service iptables save”¹ is used, in some places
“/etc/init.d/iptables save”². I think it was 2 or more authors with
different preferences.

> Also interesting: the openrc wiki page doesn't mention rc-service at
> all and the examples all use "/etc/init.d/ ".
> [That's what I tend to use because it allows tab-completion.]

Gentoo installs completions for rc-service for both Zsh and Bash.

¹ 
² 



[gentoo-user] Re: iptables wiki page questions

2020-08-14 Thread Grant Edwards
On 2020-08-14, tastytea  wrote:

> rc-service runs the same service scripts that are in /etc/init.d/, so
> it's the same. However the manpage of rc-service(8) mentions that
> “Service scripts could be in different places on different systems”, so
> the most compatible way would be to use rc-service.

Oddly, the two usages are both within one example.  It appears that
the author uses "/etc/init.d/iptables" for the "save" command and
"rc-service iptables" for the "start" command.

Also interesting: the openrc wiki page doesn't mention rc-service at
all and the examples all use "/etc/init.d/ ".
[That's what I tend to use because it allows tab-completion.]

--
Grant