Package: approx
Version: 5.2-1
Severity: wishlist
Tags: patch

Hi,

Instead of using inetd just for approx, I’d like to completely get rid
of inetd :). Since systemd has support for what inetd does, it’s simple
to write a systemd .socket-file and corresponding .service-file to get
approx running. I’ve attached these two files. Please note that this
also means a change in the dependencies of approx: systemd has to be
added as an inetd alternative.

systemd is a sysvinit replacement (see [1] for more information).

Please include both attached files in /lib/systemd/system/ in the next
upload of approx.

If you have any questions, please do not hesitate to contact me.

Thanks!
Best regards,
Michael

[1] http://en.wikipedia.org/wiki/Systemd
For debian specific documentation, see also
http://wiki.debian.org/systemd
[Unit]
Description=caching proxy server for Debian archive files
Documentation=man:approx(8)

[Socket]
ListenStream=9999
Accept=yes

[Install]
WantedBy=sockets.target
[Unit]
Description=caching proxy server for Debian archive files
Documentation=man:approx(8)

[Service]
User=approx
ExecStart=-/usr/sbin/approx
StandardInput=socket

Reply via email to