Skip to content

Instantly share code, notes, and snippets.

@LeetCodes
Forked from gdamjan/leafnode.socket
Created September 9, 2021 04:09
Show Gist options
  • Save LeetCodes/9b1d1570a5c291562a9cdd0eaf6c126f to your computer and use it in GitHub Desktop.
Save LeetCodes/9b1d1570a5c291562a9cdd0eaf6c126f to your computer and use it in GitHub Desktop.
SystemD config files for leafnode (socket activation)
[Unit]
Description=Leafnode NNTP Socket
[Socket]
ListenStream=127.0.0.1:119
Accept=true
[Install]
WantedBy=sockets.target
[Unit]
Description=Leafnode NNTP service
After=syslog.target
[Service]
ExecStart=/usr/sbin/leafnode
StandardInput=socket
StandardOutput=socket
StandardError=syslog
User=news
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment