From 1fe678e57bcd05502d838abaf6e2a3cdd25dab85 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 30 Oct 2023 12:18:29 +0300 Subject: [PATCH] Add --no-block to udev rule --- mon/90-vitastor.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mon/90-vitastor.rules b/mon/90-vitastor.rules index cc857ef2..f2bf82f2 100644 --- a/mon/90-vitastor.rules +++ b/mon/90-vitastor.rules @@ -3,5 +3,5 @@ SUBSYSTEM=="block", ENV{ID_PART_ENTRY_TYPE}=="e7009fac-a5a1-4d72-af72-53de130599 IMPORT{program}="/usr/bin/vitastor-disk udev $devnode", \ SYMLINK+="vitastor/$env{VITASTOR_ALIAS}" -ENV{VITASTOR_OSD_NUM}!="", ACTION=="add", RUN{program}+="/usr/bin/systemctl enable --now vitastor-osd@$env{VITASTOR_OSD_NUM}" -ENV{VITASTOR_OSD_NUM}!="", ACTION=="remove", RUN{program}+="/usr/bin/systemctl disable --now vitastor-osd@$env{VITASTOR_OSD_NUM}" +ENV{VITASTOR_OSD_NUM}!="", ACTION=="add", RUN{program}+="/usr/bin/systemctl enable --now --no-block vitastor-osd@$env{VITASTOR_OSD_NUM}" +ENV{VITASTOR_OSD_NUM}!="", ACTION=="remove", RUN{program}+="/usr/bin/systemctl disable --now --no-block vitastor-osd@$env{VITASTOR_OSD_NUM}"