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
0 answers
36 views

socat listen on fd for systemd socket activation

When using systemd socket activation, systemd listens on the socket and passes the fd to the service. Is it possible to have socat listen on the fd and connect to some where else? I am trying to move ...
user avatar
  • 4,039
0 votes
1 answer
37 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 ...
user avatar
  • 155
0 votes
0 answers
10 views

Resource exhaustion with systemd socket-activated service

I recently set up a new service with systemd having the following configuration: # myservice@.service [Unit] Description=My Service [Service] Type=simple RemainAfterExit=yes ExecStart=/usr/local/bin/...
user avatar
0 votes
0 answers
78 views

How to use xinetd to pipe over TCP into standard input of another program

Apologies if my wording is a little hard to understand -- I am fairly new to Linux. I have a program called fx2pipe on a Linux machine that communicates with a certain electronic device. The ...
user avatar
  • 101
0 votes
1 answer
221 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] ...
user avatar
  • 2,186
1 vote
0 answers
290 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-...
user avatar
  • 5,166
1 vote
0 answers
177 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 ...
user avatar
0 votes
1 answer
705 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:...
user avatar
0 votes
2 answers
256 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 ...
user avatar
1 vote
1 answer
171 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 ...
user avatar
  • 899
1 vote
1 answer
1k 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 ...
user avatar
  • 31
2 votes
1 answer
426 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 ...
user avatar
  • 123
4 votes
2 answers
2k 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 [...
user avatar
  • 141
9 votes
3 answers
2k 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 ...
user avatar
  • 1,427
8 votes
2 answers
3k 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 ...
user avatar
  • 1,427
20 votes
3 answers
4k 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 ...
user avatar
3 votes
1 answer
4k 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 - ...
user avatar
  • 71
3 votes
1 answer
453 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 ...
user avatar
  • 4,099