Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created August 12, 2011 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gdamjan/1142205 to your computer and use it in GitHub Desktop.
Save gdamjan/1142205 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