Skip to content

Instantly share code, notes, and snippets.

@bcwaldon
Last active August 29, 2015 14:14
Show Gist options
  • Save bcwaldon/0ff9ecc53a09220fc988 to your computer and use it in GitHub Desktop.
Save bcwaldon/0ff9ecc53a09220fc988 to your computer and use it in GitHub Desktop.
fleet.socket ListenStream drop-in
#cloud-config
coreos:
units:
- name: fleet.socket
command: start
drop-ins:
- name: 30-ListenStream.conf
content: |
[Socket]
ListenStream=127.0.0.1:49153
- name: fleet.service
command: start
@crawford
Copy link

crawford commented Feb 3, 2015

Your indentation is a bit off.

#cloud-config
coreos:
  units:
    - name: fleet.socket
      command: start
      drop-ins:
      - name: 30-ListenStream.conf
        content: |
          [Socket]
          ListenStream=127.0.0.1:49153
    - name: fleet.service
      command: start

@bcwaldon
Copy link
Author

bcwaldon commented Feb 4, 2015

@crawford thanks, fixed it

@tleyden
Copy link

tleyden commented May 5, 2015

This didn't work for me, but based on this google groups post I removed the IP and only specified the port, and it worked:

  - name: fleet.socket
    command: start
    drop-ins:
    - name: 30-ListenStream.conf
      content: |
        [Socket]
        ListenStream=49153
  - name: fleet.service
    command: start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment