sysctl service

This commit is contained in:
Jack L. Frost 2014-03-01 22:34:13 +04:00
parent b8798b8398
commit 69458326d6
1 changed files with 21 additions and 0 deletions

21
init.d/sysctl Executable file
View File

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