aboutsummaryrefslogtreecommitdiff
path: root/scripts/lunmask.service
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lunmask.service')
-rw-r--r--scripts/lunmask.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/lunmask.service b/scripts/lunmask.service
new file mode 100644
index 00000000..03fdd96a
--- /dev/null
+++ b/scripts/lunmask.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Disable LUN masking and scan SCSI Hosts
+After=systemd-udev-trigger.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/lib/systemd/scripts/scsi-enable-target-scan.sh
+
+[Install]
+WantedBy=multi-user.target