OSX Mojave sysctl -p illegal

Viewed 1365

14 "Mojave" on my macbook and I am trying to increase the fs.inotify.max_user_watches value in /etc/sysctl.conf (to solve another problem). To conclude this rite I need to run sudo sysctl -p /etc/sysctl.conf. But I get

"illegal option -- p"

When I check the man page on osx it in fact does not have the -p option (to supply a file) nor the --system option (to load all known config files); on another system I clearly see that those options are available.

How else then can I get sysctl to take my new configs? Is there a different way to configure fs.inotify.max_user_watches on osx?

1 Answers

On Big Sur, the first lines for sysctl manpage are:

SYSCTL(8)                 BSD System Manager's Manual                SYSCTL(8)

NAME
     sysctl -- get or set kernel state

This must mean sysctl itself can be used to update some values. However, sysctl does not show the fs.inotify.max_user_watches name. Must be another mac thing...

Related