Created
April 8, 2020 10:37
-
-
Save apple-corps/6513e2b8cc665495c696a061056c0ca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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