HEX
Server: Apache
System: Linux box5134.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: bqfpihmy (1846)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //lib/systemd/system/iscsi-init.service
[Unit]
Description=One time configuration for iscsi.service
ConditionPathExists=!/etc/iscsi/initiatorname.iscsi
DefaultDependencies=no
RequiresMountsFor=/etc/iscsi
# systemd-remount-fs.service is optionally pulled in by
# local-fs.target, don't start it here (no Wants=) but if
# it's running wait for it to finish
After=systemd-remount-fs.service

[Install]
# this ensures we are in the same transaction with
# systemd-remount-fs.service
WantedBy=systemd-remount-fs.service

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/sh -c 'echo "InitiatorName=`/usr/sbin/iscsi-iname`" > /etc/iscsi/initiatorname.iscsi'