Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save apple-corps/6513e2b8cc665495c696a061056c0ca0 to your computer and use it in GitHub Desktop.
Save apple-corps/6513e2b8cc665495c696a061056c0ca0 to your computer and use it in GitHub Desktop.
# your-service.socket
[Socket]
ListenStream=80
# your-service.service
[Service]
ExecStart=/path/to/my/binary
User=username
# in your service
// use systemd-provided file descriptor instead of binding in Node
server.listen({fd: 3});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment