How does systemd provide data to the service triggered by a socket?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
The concept behind systemd sockets is to provide a "cheap listener service" that will start the "service that would normally bind that socket but we don't want to run it all the time" once data on the socket is detected.
Once started why can the "service that would normally bind that socket but we don't want to run it all the time" now receive data from the socket?
[Background]
I don't want rsyslog
to be started when there is data on /run/systemd/journal/syslog
. I want to start it when I need it and don't understand why is it a bad practice to bind it directly to the socket and delete syslog.socket
altogether.
systemd rsyslog systemd-journald
add a comment |
up vote
0
down vote
favorite
The concept behind systemd sockets is to provide a "cheap listener service" that will start the "service that would normally bind that socket but we don't want to run it all the time" once data on the socket is detected.
Once started why can the "service that would normally bind that socket but we don't want to run it all the time" now receive data from the socket?
[Background]
I don't want rsyslog
to be started when there is data on /run/systemd/journal/syslog
. I want to start it when I need it and don't understand why is it a bad practice to bind it directly to the socket and delete syslog.socket
altogether.
systemd rsyslog systemd-journald
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
@FilipeBrandenburgerDo you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.
– TheMeaningfulEngineer
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The concept behind systemd sockets is to provide a "cheap listener service" that will start the "service that would normally bind that socket but we don't want to run it all the time" once data on the socket is detected.
Once started why can the "service that would normally bind that socket but we don't want to run it all the time" now receive data from the socket?
[Background]
I don't want rsyslog
to be started when there is data on /run/systemd/journal/syslog
. I want to start it when I need it and don't understand why is it a bad practice to bind it directly to the socket and delete syslog.socket
altogether.
systemd rsyslog systemd-journald
The concept behind systemd sockets is to provide a "cheap listener service" that will start the "service that would normally bind that socket but we don't want to run it all the time" once data on the socket is detected.
Once started why can the "service that would normally bind that socket but we don't want to run it all the time" now receive data from the socket?
[Background]
I don't want rsyslog
to be started when there is data on /run/systemd/journal/syslog
. I want to start it when I need it and don't understand why is it a bad practice to bind it directly to the socket and delete syslog.socket
altogether.
systemd rsyslog systemd-journald
systemd rsyslog systemd-journald
asked 2 days ago
TheMeaningfulEngineer
1,61163568
1,61163568
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
@FilipeBrandenburgerDo you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.
– TheMeaningfulEngineer
2 days ago
add a comment |
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
@FilipeBrandenburgerDo you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.
– TheMeaningfulEngineer
2 days ago
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
@FilipeBrandenburger
Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.– TheMeaningfulEngineer
2 days ago
@FilipeBrandenburger
Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.– TheMeaningfulEngineer
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481989%2fhow-does-systemd-provide-data-to-the-service-triggered-by-a-socket%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you seen the relevant systemd documentation?
– Stephen Kitt
2 days ago
What do you mean by "I want to start it when I need it"? It's arguably needed when there's log data in the socket for it to consume... Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
– Filipe Brandenburger
2 days ago
@FilipeBrandenburger
Do you mean you want to start it unconditionally and have rsyslog listen on the socket directly, rather than use socket activation for it?
Yes. And all the docs imply the socket activation setup. So I'm trying to understand what could go wrong if I bypass systemd sockets.– TheMeaningfulEngineer
2 days ago