Questions tagged [socket-activation]
systemd socket activation...saves on server resources by listening with a socket instead of a full blown process. Then when a request is made the server can spin up the actual service.
22 questions
2 votes
1 answer
130 views
What is the cost of listening on ports?
If you would open a listening socket on every possible TCP/UDP port (so thousands in total), without actually using them, what would be the cost in terms of performance? Is it merely an administrative ...
1 vote
1 answer
261 views
Where is the Systemd ordering cycle occurring?
I have to Systemd units a service and a socket. The desired behavior is that when I start the socket the service will start first followed by the socket and when either is taken down they should both ...
0 votes
2 answers
496 views
First ssh-agent request fails on WSL with systemd socket-activation
Running Fedora on WSL2, I find that the socket activation on ssh-agent doesn't quite work properly: the first request that triggers the actual service starting fails. This may be a git fetch or git ...
0 votes
1 answer
176 views
Automatically turn on and off rarely used services
I have here a minimal-memory, lowest-budget VM setting, where I would like to use a rarely used big service. I think, things would look really much better, if I could simply turn it off if I do not ...
0 votes
1 answer
2k views
Simple systemd socket activation from HTTP request
I want to use systemd socket activation to start a service whenever an HTTP request is received on the listening socket. The incoming message is not important and can be discarded by systemd or the ...
0 votes
0 answers
88 views
Why getting access denied when starting a port
I have a RHEL 8 Linux and using db2 when starting a services of db2 (hadr) we get in the diag an error message like below. The command to start the hadr service does not return an error but the remote ...
1 vote
0 answers
270 views
How to get different UID using Dynamic Users with socket activation?
I'm following the Dynamic Users with systemd post and creating the waldo.socket and waldo.service. Here is my waldo.socket. [Socket] ListenStream=2048 Accept=yes And the corresponding [email protected] [...
0 votes
2 answers
602 views
podman Error: wrong number of file descriptors for socket activation protocol (2 != 1)
I'm encountering what seems like a bug with the socket activation mechanism for podman, though I'm not sure if the issue is podman or systemd. I created an alternative managed socket unit for the ...
0 votes
1 answer
334 views
How to Activate a Mount of a Remote Share When Its Machine Connects?
How can one activate a mount of a remote SMB share when the remote machine connects? This is more about discerning a local event triggered by the connection of a particular remote machine, than it is ...
0 votes
1 answer
818 views
How to restrict the access/activation times for a service/socket with systemd?
I have a simple systemd service that is activated by system socket. It's as simple as that (a little simplified): $ systemctl cat example.socket # /usr/lib/systemd/system/example.socket [Unit] ...
2 votes
0 answers
770 views
Can systemd be used as an inetd/xinetd replacement without being an init?
Can systemd be configured (in runtime or compile time) to serve as a simple process supervisor, not as /sbin/init? If yes, are there tutorials and other documentation to follow to make customized non-...
1 vote
1 answer
2k views
Systemd socket-based-activation service fails due to "start request repeated too quickly"
I have the following units: test_socket_activation.socket [Unit] Description="************** MY TEST SOCKET ***************" PartOf=test_socket_activation.service [Socket] ListenStream=127.0.0.1:...
0 votes
2 answers
1k views
Manually stopped service is not properly stopped
I have a Server, that is supposed to activate if someone tries to connect to it. For this I created a systemd socket and service that builds a proxy for my server and starts it. Thanks to this ...
1 vote
1 answer
736 views
How to specify the service template name when using socket activation with Accept=yes
I have multiple .socket files, they listen with Accept=yes. They should all use the same service template to process connections. By default systemd looks for a service template with the same name as ...
2 votes
1 answer
3k views
Systemd socket activation stdin
I have to tranfer a legacy xinetd config to systemd. The requirement is to open a tcp port and listen to incoming transmissions. An application transfers one file per connection simply by netcating it ...