Skip to content
/ sysctl Public

Get and set the linux system-wide variables, e.g. net.ipv6.conf.all.disable_ipv6

License

Notifications You must be signed in to change notification settings

go-laeo/sysctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sysctl

build.yaml Go Reference golangci.yaml

Package sysctl inspired by systemd's sysctl source code and kubernetes's sysctl subpackage.

Install

go get github.com/go-laeo/sysctl

Example

// disables all ipv6
sysctl.Set("net.ipv6.conf.all.disable_ipv6", "1")

// check if ipv6 has disabled
disabled, err := sysctl.GetBool("net.ipv6.conf.all.disable_ipv6")

License

The MIT License.

About

Get and set the linux system-wide variables, e.g. net.ipv6.conf.all.disable_ipv6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages