On 2020-08-15 00:22-0000 Grant Edwards <[email protected]>
wrote:

> On 2020-08-14, tastytea <[email protected]> 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/<whatever> <command>".
> [That's what I tend to use because it allows tab-completion.]

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

¹ <https://wiki.gentoo.org/wiki/Iptables#First_run>
² <https://wiki.gentoo.org/wiki/Iptables#Generating_firewall_rules>

Reply via email to