Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
2
votes
1answer
31 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 ...
2
votes
0answers
306 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 [...
3
votes
2answers
591 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 ...
5
votes
2answers
859 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 ...
14
votes
1answer
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
2k 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
339 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 ...