Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-12-10 20:44:17 +03:00
parent e6f85aa437
commit d85b1945e9
115 changed files with 132 additions and 238 deletions

15
services/sysctl Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env ssm
unset reload
service_type='oneshot'
service_command='/usr/bin/sysctl'
pre_start() {
for i in /etc/sysctl.conf /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
[[ -f "$i" ]] && {
sysctl_config_files+=( "$i" )
}
done
service_command+=( -p "${sysctl_config_files[@]}" )
}