diff --git a/init.d/sysctl b/init.d/sysctl new file mode 100755 index 0000000..10353d3 --- /dev/null +++ b/init.d/sysctl @@ -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