ssm-services/init.d/sysctl
2015-03-05 12:43:37 +03:00

18 lines
336 B
Plaintext
Executable File

#!/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
[[ -f "$i" ]] && {
sysctl_config_files+=( "$i" )
}
done
service_type='oneshot'
service_command='/sbin/sysctl'
service_args="-p ${sysctl_config_files[@]}"
unset restart reload