]> granicus.if.org Git - procps-ng/commitdiff
sysctl man page update for pattern
authorBas van der Vlies <bas.vandervlies@surf.nl>
Thu, 25 Feb 2021 08:35:33 +0000 (09:35 +0100)
committerCraig Small <csmall@dropbear.xyz>
Sat, 29 May 2021 06:20:02 +0000 (16:20 +1000)
pattern must be used before `--system` else it does not work for sysctl
file(s)

```
root# /sbin/sysctl --system --pattern '^net.ipv6'
* Applying /etc/sysctl.d/30-ceph-osd.conf ...
fs.aio-max-nr = 1048576
kernel.pid_max = 4194304
* Applying /etc/sysctl.d/protect-links.conf ...
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/sara_tweaks.conf ...
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 0
* Applying /etc/sysctl.conf ...
```

vs:
```
root# /sbin/sysctl --pattern '^net.ipv6' --system
* Applying /etc/sysctl.d/30-ceph-osd.conf ...
* Applying /etc/sysctl.d/protect-links.conf ...
* Applying /etc/sysctl.d/sara_tweaks.conf ...
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 0
* Applying /etc/sysctl.conf ...
```

References:
 !124

sysctl.8

index f5eb24efa732a92f2b468b7cfbf97fdeaf351799..6c5bd3cc64df3ab47bd83f5f718a3a8976d4b3c7 100644 (file)
--- a/sysctl.8
+++ b/sysctl.8
@@ -149,7 +149,7 @@ file that is ordered later).
 .br
 /sbin/sysctl \-a \-\-pattern 'net.ipv4.conf.(eth|wlan)0.arp'
 .br
-/sbin/sysctl \-\-system \-\-pattern '\[char94]net.ipv6'
+/sbin/sysctl \-\-pattern '\[char94]net.ipv6' \-\-system
 .SH DEPRECATED PARAMETERS
 The
 .B base_reachable_time