2014-03-01 18:34:13 +00:00
|
|
|
#!/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"
|
2014-07-03 07:05:52 +00:00
|
|
|
|
|
|
|
start() {
|
|
|
|
watchman.start
|
|
|
|
}
|
|
|
|
|
|
|
|
unset restart reload
|