[Pkg-systemd-maintainers] How to add systemd unit files for inetd-like services?

Moritz Mühlenhoff jmm at inutil.org
Fri Aug 2 13:34:07 BST 2013


Hi,
I'm experimenting with systemd (which looks very nice so far). To dig in I'm
trying to convert the remaining sysv services I use to systemd. The leafnode
NNTP server uses inetd to start the daemon.

I researched/wrote up two service files and put them into /etc/systemd/system:

leafnode.socket:
[Unit]
Description=NNTP server for small sites (socket)

[Socket]
ListenStream=119
Accept=yes

[Install]
WantedBy=sockets.target

leafnode at .service:
[Unit]
Description=NNTP server for small sites

[Service]
ExecStart=/usr/sbin/leafnode
StandardInput=socket
User=news

These two work very well in my tests. Can you advise on the correct way to hook 
these into a package using dh-systemd ?

Cheers,
        Moritz




More information about the Pkg-systemd-maintainers mailing list