Skip to content
/ xlisten Public

Perceptionless systemd-socket inheritance implementation

License

Notifications You must be signed in to change notification settings

cevin/xlisten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XListen

Perceptionless systemd-socket inheritance implementation

Automatic inheritance when using systemd-socket

Otherwise, use the built-in net package to create the listener

Example

# /etc/systemd/system/test.socket

[Socket]
ListenStream=0.0.0.0:8000

[Install]
WantedBy=sockets.target
# /etc/systemd/system/test.service

[Service]
Type=simple
ExecStart=/bin/any-executeable-binary-file

[Install]
WantedBy=multi-user.target
package main

func main() {
	listener, err := xlisten.Listen("tcp4", ":8000")
}

About

Perceptionless systemd-socket inheritance implementation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages