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
7 views

Using systemd sockets with .NET Core

I have installed a .NET Core application on my Ubuntu server, and it is running fine both when I run it manually and when I set it up as a systemd service. However, since the application is being run ...
0
votes
0answers
75 views

Transform xinetd to systemd service

I'm trying to migrate old application written for xinetd to systemd service. The config I have is: service server_ipv6 { id = server_ipv6 type = UNLISTED flags = ...
1
vote
0answers
125 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-...
0
votes
0answers
63 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
90 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
335 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
62 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
63 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
747 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
259 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
2answers
1k 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 [...
7
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 ...
19
votes
3answers
3k 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
384 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 ...