[Unit] Description=tgt admin After=network.target [Service] Type=forking User=root ExecStart=/usr/sbin/tgtd ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline ; /usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf ; /usr/sbin/tgtadm --op update --mode sys --name State -v ready ExecStopPre=/usr/sbin/tgt-admin --update ALL -c /dev/null ExecStop=-/usr/sbin/tgtadm --op delete --mode system [Install] WantedBy=multi-user.target