#1058694 sn: please provide systemd unit

Package:
sn
Source:
sn
Description:
Small NNTP server for leaf sites
Submitter:
Klaus Rein
Date:
2023-12-14 14:45:04 UTC
Severity:
normal
#1058694#5
Date:
2023-12-14 14:41:45 UTC
From:
To:
sn is the only service left on my machine that has a dependency on
inetd. It might be a good idea to add some systemd unit files.

I am not the systemd expert, but the following snippets might be a
starting point. At least they work for me. :-)
----[sn.socket]----
[Unit]
Description=SN News Server

[Socket]
ListenStream=119
Accept=yes

[Install]
WantedBy=sockets.target
----
----[sn@.service]---- [Unit] Description=SN News Per-Connection Service [Service] Type=simple Environment="POSTING_OK=1" ExecStart=/usr/sbin/snntpd.bin /usr/bin/logger -p news.info User=news Group=news StandardInput=socket [Install] WantedBy=multi-user.target ---- Klaus.