ssm-services/init.d/sysctl

18 lines
334 B
Plaintext
Raw Normal View History

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'
2014-08-02 18:21:42 +00:00
service_args="-p ${sysctl_config_files[@]}"
2014-07-03 07:05:52 +00:00
unset restart reload