Artix Linux Forum

Init systems => S6 => Topic started by: shoober420 on 21 August 2020, 06:52:33

Title: [Solved] sysctl-s6
Post by: shoober420 on 21 August 2020, 06:52:33
Similar to the “iptables-s6” package, could a “sysctl-s6” package be considered as well? This would bring it to equal simplicity with systemd. I tweak a lot of settings, and that would be the main last default service needed.
Title: Re: sysctl-s6
Post by: Dudemanguy on 21 August 2020, 14:54:12
Any reason why this can't be done with a command in /etc/s6/rc.local?
Title: Re: sysctl-s6
Post by: Dudemanguy on 21 August 2020, 18:28:55
Actually, I totally forgot but s6-scripts already has a sysctl oneshot in it that executes "sysctl --system" on every bootup. Should be sufficient right? Just put the commands you want in the appropriate conf file as described in the manual.
Title: Re: sysctl-s6
Post by: shoober420 on 21 August 2020, 20:21:00
Awesome! So I was putting “sysctl -p” in my “/etc/s6/rc.local” file, but once I removed that and kept “/etc/sysctl.conf” in that directory, it still loaded like you said. Thank you very much.