Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-12-10 20:44:17 +03:00
parent e6f85aa437
commit d85b1945e9
115 changed files with 132 additions and 238 deletions

14
services/vdevd Executable file
View File

@@ -0,0 +1,14 @@
#!/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"
}