[systemd-devel] converting a xinetd-service to systemd
Lennart Poettering
lennart at poettering.net
Mon Sep 26 09:43:42 PDT 2011
On Wed, 14.09.11 22:31, Stefan G. Weichinger (lists at xunil.at) wrote:
Sorry for the delay, but I hope this is useful still:
>
> What I have now:
>
> # cat amanda.socket
> [Socket]
> ListenStream=10080
> Accept=true
>
> [Install]
> WantedBy=sockets.target
>
> # cat amanda\@.service
> [Unit]
> Description=amandad
>
> [Service]
> ExecStart=-/usr/libexec/amanda/amandad -auth=bsdtcp amdump
> User=amanda
> Group=amanda
>
If this is an inetd service you need to specify "StandardInput=socket"
here. That directive makes sure the sockets are passes on fds 0-2 to the
spawned process which is how inetd does it too.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list