File init-hack.service of Package container-heroes-salt-testing-systemd
[Unit] Description=Start Bash shell attached to container STDIN/STDOUT [Service] ExecStart=/bin/bash -c "echo Attaching to pipes of PID `cat container-pipes-pid` && exec /bin/bash < /proc/`cat container-pipes-pid`/fd/0 > /proc/`cat container-pipes-pid`/fd/1 2>/proc/`cat container-pipes-pid`/fd/2" ExecStopPost=/usr/bin/systemctl exit $EXIT_STATUS [Install] WantedBy=multi-user.target