systemd socket activation fuer einen UDP-Dienst, hier tftp
Hallo,
ich möchte den atftpd-Dienst per systemd socket activation starten und
bin dabei bisher nicht erfolgreich. Hier mein aktueller Versuch:
|==> /etc/systemd/system/atftpd.socket <==
|[Unit]
|Description=Advanced tftp Server Activation Socket
|
|[Socket]
|ListenDatagram=69
|
|[Install]
|WantedBy=sockets.target
|==> /etc/systemd/system/atftpd@.service <==
|[Unit]
|Description=Advanced TFTP Server
|
|[Service]
|ExecStart=/usr/sbin/atftpd --tftpd-timeout 300 --retry-timeout 5 --no-multicast --maxthread 100 --verbose=5 /srv/tftp
|StandardInput=socket
So wie das da steht, versucht er beim Zugriff auf Port 69 den atftpd
über das im Debian-Paket enthaltene Initscript per LSB-Generator zu
starten. Unerwünscht.
Wenn ich dann atftpd.service maskiere, sagt er:
|Aug 12 10:21:56 weave systemd[1]: Starting Advanced tftp Server Activation Socket.
|Aug 12 10:21:56 weave systemd[1]: Socket service atftpd.service not loaded, refusing.
|Aug 12 10:21:56 weave systemd[1]: Failed to listen on Advanced tftp Server Activation Socket.
Wenn ich "Accept=yes" in der socket-Unit setze (was laut Doku für
ListnDatagram ignoriert wird), sagt er im Log "atftpd.socket
configured for accepting sockets, but sockets are non-accepting.
Refusing."
Wie macht man's richtig?
Grüße
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834
Reply to: