Skip to main content

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.

2 votes
1 answer
130 views

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 ...
Maestro's user avatar
  • 233
1 vote
1 answer
261 views

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 ...
Braedon's user avatar
  • 13
0 votes
2 answers
496 views

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 ...
ncoghlan's user avatar
  • 1,091
0 votes
1 answer
176 views

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 ...
peterh's user avatar
  • 10.5k
0 votes
1 answer
2k views

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 ...
tsj's user avatar
  • 207
0 votes
0 answers
88 views

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 ...
Guy Przytula's user avatar
1 vote
0 answers
270 views

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] [...
Steve Schnepp's user avatar
0 votes
2 answers
602 views

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 ...
Charles Langlois's user avatar
0 votes
1 answer
334 views

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 ...
ebsf's user avatar
  • 399
0 votes
1 answer
818 views

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] ...
rugk's user avatar
  • 3,686
2 votes
0 answers
770 views

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-...
Vi.'s user avatar
  • 6,005
1 vote
1 answer
2k views

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:...
Lawless Leopard's user avatar
0 votes
2 answers
1k views

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 ...
Rennsemmel01's user avatar
1 vote
1 answer
736 views

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 ...
JanKanis's user avatar
  • 1,649
2 votes
1 answer
3k views

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 ...
baneus's user avatar
  • 51

15 30 50 per page