24 lines
379 B
Plaintext
Executable File
24 lines
379 B
Plaintext
Executable File
#!/usr/bin/env watchman
|
|
unset reload
|
|
|
|
service_type='oneshot'
|
|
service_command='/usr/bin/sysctl'
|
|
|
|
pre_start() {
|
|
for i in /etc/sysctl.conf /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
|
|
[[ -f "$i" ]] && {
|
|
sysctl_config_files+=( "$i" )
|
|
}
|
|
done
|
|
|
|
service_args=( -p "${sysctl_config_files[@]}" )
|
|
}
|
|
|
|
start() {
|
|
if ! [[ "$sysctl_config_files" ]]; then
|
|
return 0
|
|
fi
|
|
|
|
watchman.start
|
|
}
|