entrypoint.sh 261 B

123456
  1. #!/bin/bash
  2. date > /tmp/started
  3. { /bin/sleep 15; /usr/sbin/tgtadm --op update --mode sys --name State -v offline; /usr/sbin/tgt-admin -e -c /etc/tgt/tgtd.conf; /usr/sbin/tgtadm --op update --mode sys --name State -v ready; date > /tmp/finished; } &
  4. exec "$@"