engine: resources: Add a sysctl resource

Very useful since these are easy to forget!
This commit is contained in:
James Shubin
2024-09-15 23:07:03 -04:00
parent e7b57a32fd
commit a4f368fc9f
2 changed files with 407 additions and 0 deletions

9
examples/lang/sysctl.mcl Normal file
View File

@@ -0,0 +1,9 @@
# To know where this value is, just prepend /proc/sys/ and then replace the dots
# with slashes, so this becomes /proc/sys/net/ipv4/ip_forward which you can cat!
sysctl "net.ipv4.ip_forward" { # firewalls love this!
value => "1",
}
#sysctl "kernel.hostname" {
# value => "example.com",
#}