forked from Spark/ssm-services
15 lines
347 B
Plaintext
Executable File
15 lines
347 B
Plaintext
Executable File
#!/usr/bin/env ssm
|
|
|
|
#service_respawn='true'
|
|
service_command=( /usr/bin/vdevd -f /dev )
|
|
service_tmpfiles=( '/run/vdev:dir' '/run/udev:symlink:/dev/metadata/udev' )
|
|
|
|
pre_start() {
|
|
# Ensure that hotplug is empty
|
|
if [[ -f /proc/sys/kernel/hotplug ]]; then
|
|
true > /proc/sys/kernel/hotplug
|
|
fi
|
|
|
|
"$service_command" -1 -f /dev &>"$service_logfile"
|
|
}
|