Skip to content

Commit

Permalink
Update to include use of --output option
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Saturnino committed Nov 20, 2014
1 parent 79ed6d7 commit cd98411
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions example/envetcd-sample.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ Type=oneshot
ExecStartPre=/bin/bash -c "echo Starting..."
ExecStart=/bin/bash -c "TMPFILE_ENVETCD=$(mktemp -t service.XXXXXXXXXX); \
echo $$TMPFILE_ENVETCD; \
exec /envetcd --service redis -c env>$TMPFILE_ENVETCD && \
exec /usr/bin/docker images; "
#ExecStart=/bin/bash -c "echo '====>'; \
# echo $$TMPFILE_ENVETCD; \
# exec /usr/bin/docker images; \
# exec /usr/bin/rm -f $TMPFILE_ENVETCD ;"
# exec /usr/bin/docker run \
# --env-file=$TMPFILE_ENVETCD; \ "
ExecStartPost=/bin/bash -c "echo "==> $$TMPFILE_ENVETCD""
ExecStartPost=/bin/bash -c "exec /usr/bin/rm -f $TMPFILE_ENVETCD"
/envetcd --service redis --output $TMPFILE_ENVETCD -c env; \
/usr/bin/docker images; \
echo "Removing temporary file; \
/usr/bin/rm -f $TMPFILE_ENVETCD ;"
ExecStartPost=/bin/bash -c "echo DONE"

0 comments on commit cd98411

Please sign in to comment.