ssm-services/services/vdevd

15 lines
350 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env ssm
2015-05-13 11:30:54 +00:00
service_respawn=on-failure
service_command=( /usr/bin/vdevd -f /dev )
2015-08-22 17:37:10 +00:00
service_tmpfiles=( '/run/vdev:dir' '/run/udev:symlink:/dev/metadata/udev' )
2015-10-13 09:34:00 +00:00
pre_start() {
# Ensure that hotplug is empty
if [[ -f /proc/sys/kernel/hotplug ]]; then
true > /proc/sys/kernel/hotplug
fi
2015-10-31 15:07:33 +00:00
"$service_command" -1 -f /dev &>"$service_logfile"
2015-10-13 09:34:00 +00:00
}