in reply to Re: Systemd socket activated service in perl
in thread Systemd socket activated service in perl

Thanks for the link to Systemd::Daemon I will check it out.

Sadly, the example code you have given me for xinetd won't be sufficient. I really need the remote IP address as for the production service the same request will get substantially different answers depending on who is asking, and that answer can change from minute to minute via a database query. A simple whitelist of allowed IP addresses is no where near sufficient.

  • Comment on Re^2: Systemd socket activated service in perl

Replies are listed 'Best First'.
Re^3: Systemd socket activated service in perl
by tybalt89 (Monsignor) on Jan 20, 2024 at 12:14 UTC

    The remote host is in $ENV{REMOTE_HOST}

      Thanks for the tip that it will be in the environment of the spawned process, though actually it is in REMOTE_ADDR (not REMOTE_HOST)

        It's in REMOTE_ADDR for systemd.
        and in REMOTE_HOST for xinetd.