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