1 |
On 2020-08-14, tastytea <tastytea+gentoo@××××××××.de> wrote: |
2 |
|
3 |
> rc-service runs the same service scripts that are in /etc/init.d/, so |
4 |
> it's the same. However the manpage of rc-service(8) mentions that |
5 |
> “Service scripts could be in different places on different systems”, so |
6 |
> the most compatible way would be to use rc-service. |
7 |
|
8 |
Oddly, the two usages are both within one example. It appears that |
9 |
the author uses "/etc/init.d/iptables" for the "save" command and |
10 |
"rc-service iptables" for the "start" command. |
11 |
|
12 |
Also interesting: the openrc wiki page doesn't mention rc-service at |
13 |
all and the examples all use "/etc/init.d/<whatever> <command>". |
14 |
[That's what I tend to use because it allows tab-completion.] |
15 |
|
16 |
-- |
17 |
Grant |