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.

0 votes
1 answer
84 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 ...
tsj's user avatar
  • 165
0 votes
0 answers
52 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 ...
Guy Przytula's user avatar
1 vote
0 answers
131 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] [...
Steve Schnepp's user avatar
0 votes
2 answers
374 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 ...
Charles Langlois's user avatar
0 votes
1 answer
254 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 ...
ebsf's user avatar
  • 331
0 votes
1 answer
615 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] ...
rugk's user avatar
  • 3,216
2 votes
0 answers
648 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-...
Vi.'s user avatar
  • 5,813
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:...
Lawless Leopard's user avatar
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 ...
Rennsemmel01's user avatar
1 vote
1 answer
514 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 ...
JanKanis's user avatar
  • 1,131
2 votes
1 answer
2k 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 ...
baneus's user avatar
  • 51
3 votes
1 answer
779 views

Systemd socket activation: kill bash script when closing socket

Assuming a minimal example like in this question, except for another shell script. [email protected]: [Unit] Description=Foo Service After=network.target systemfoo.socket Requires=systemfoo.socket ...
gerion's user avatar
  • 133
7 votes
4 answers
6k views

How do I make systemd sockets close when service is stopped?

I'm currently trying to make a systemd service with two Fifo sockets. These sockets map to stdout and stdin of the application. I'm currently using the following configuration files. foo.service [...
Rene's user avatar
  • 171
13 votes
3 answers
4k views

Deactivate a systemd service after idle time

I want a service to start on demand rather than on boot. To do that I could use systemd socket activation (with the service and socket files). But this is a resource limited server, so after some ...
lonix's user avatar
  • 1,793
8 votes
2 answers
4k views

systemd "socket activation" vs xinetd

I use xinetd and it works for my purposes. However I recently discovered that systemd has something built in called "socket activation". These two seem very similar, but systemd is "official" and ...
lonix's user avatar
  • 1,793

15 30 50 per page