integ/filesystem/iscsi-initiator-utils-config/files/iscsi-shutdown.service
zhipengl 335a519863 Refactor patches for iscsi-initiator-utils package
Use iscsi-initiator-utils-config package to package config and
service file for iscsi-initiator-utils package.

Deployment test and ping test between WMs pass
Config and service files check pass.

Story: 2003768
Task: 27596

Change-Id: I6512171f1c9186018c0af15b15e7d2094e3d7a73
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
2018-11-18 01:01:24 +00:00

17 lines
447 B
Desktop File

[Unit]
Description=Logout off all iSCSI sessions on shutdown
Documentation=man:iscsid(8) man:iscsiadm(8)
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-remount-fs.service network.target iscsid.service iscsiuio.service
After=network.service
Before=remote-fs-pre.target
Wants=remote-fs-pre.target
RefuseManualStop=yes
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=-/bin/true
ExecStop=-/sbin/iscsiadm -m node --logoutall=all