Skip to content

Instantly share code, notes, and snippets.

@CodyKochmann
Created December 25, 2020 14:48
Show Gist options
  • Save CodyKochmann/89db6eb7d06a913ffdae30bb5435331e to your computer and use it in GitHub Desktop.
Save CodyKochmann/89db6eb7d06a913ffdae30bb5435331e to your computer and use it in GitHub Desktop.
systemd socket testing
# for a tcp socket
systemd-socket-activate -l 2000 --inetd tee /tmp/test-tcp.log
# for a udp socket
systemd-socket-activate -l 2000 --inetd -d tee /tmp/test-udp.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment