Skip to content

Instantly share code, notes, and snippets.

@carmstrong
Created June 17, 2014 22:54
Show Gist options
  • Save carmstrong/72aa92a07af821cbe6a1 to your computer and use it in GitHub Desktop.
Save carmstrong/72aa92a07af821cbe6a1 to your computer and use it in GitHub Desktop.
Fleet load blocking on ExecStartPre
#!/bin/bash
for i in {1..10}
do
printf "[Service]\nExecStartPre=/bin/sh -c 'while true; do echo hi; done'\nExecStart=/bin/true\n" > ./$i.service
fleetctl load --block-attempts=600 ./$i.service
rm -f ./$i.service
fleetctl start $i.service
done
# hopefully we see the error by now
# cleanup
for i in {1..10}
do
fleetctl destroy $i.service
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment