14 lines
272 B
Plaintext
Raw Normal View History

2014-03-01 22:34:13 +04:00
#!/usr/bin/env watchman
2015-03-05 13:10:58 +03:00
for i in /etc/sysctl.conf /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
2015-03-05 12:43:37 +03:00
[[ -f "$i" ]] && {
sysctl_config_files+=( "$i" )
2014-03-01 22:34:13 +04:00
}
done
service_type='oneshot'
service_command='/sbin/sysctl'
2014-08-02 22:21:42 +04:00
service_args="-p ${sysctl_config_files[@]}"
2014-07-03 11:05:52 +04:00
unset restart reload