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.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Why are unit aliases (symbolic links) not installed where specified under the [Install] block, rather in the same directory as the unit file itself?

Cut to the chase: See section "How to do it". If you are interested in the details as to how I arrived at this issue, read on from here... What I set out to do is have on-demand port forwarding using ...
1
vote
0answers
39 views

Systemd netlink socket activation with custom netlink module

I have a custom netlink kernel module with netlink family ID 22. This module delivers raw bytes from a serial bus to user space applications. Communication through sockets works fine. I want to make ...
0
votes
1answer
92 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
2answers
44 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
1answer
25 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 ...
1
vote
1answer
367 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 ...
2
votes
1answer
169 views

Systemd socket activation: kill bash script when closing socket

Assuming a minimal example like in this question, except for another shell script. systemfoo@.service: [Unit] Description=Foo Service After=network.target systemfoo.socket Requires=systemfoo.socket ...
3
votes
1answer
767 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 [...
5
votes
2answers
1k 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 ...
7
votes
2answers
2k 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 ...
15
votes
2answers
2k views

On-demand SSH Socks proxy through systemd user units with socket-activation doesn't restart as wished

To reach an isolated network I use an ssh -D socks proxy. In order to avoid having to type the details every time I added them to ~/.ssh/config: $ awk '/Host socks-proxy/' RS= ~/.ssh/config Host ...
3
votes
1answer
3k views

How to configure systemd to turn a simple script with standardIO in a network service

I'm trying to setup a bash script as a network service listening on tcp port 6666. But service fail at startup with this errors : heartbeat]# systemctl status heartbeat.service ● heartbeat.service - ...
3
votes
1answer
373 views

Systemd socket activation proxy?

I have systemd setup, and it runs: nginx.service on :80 wikiname.socket :8080 wikiname.service :9094 So here is what I do... I check if wikiname.service is running...and it is not. I start the ...