You are not logged in.

#1 2014-10-07 21:12:26

janepe
Member
From: Eastern Europe/Poland
Registered: 2014-08-19
Posts: 3

[Solved] init(pid=1) listen on port 9418(git)

Today i've found that my init process is listening on port 9418. Is it normal behaviour? It looks foolish for me.
There is git service on this port.

# netstat -lptn
...
tcp6       0      0 :::9418                 :::*                    LISTEN      1/init

/usr/lib/systemd/system/git-daemon@.service: http://paste.kde.org/prjyau78i
/usr/lib/systemd/system/git-daemon.socket: http://paste.kde.org/pjn7unt7b

Last edited by janepe (2014-10-08 12:35:43)

Offline

#2 2014-10-07 22:02:03

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: [Solved] init(pid=1) listen on port 9418(git)

systemd .socket files work by only starting the required service (for instance git) when a request comes at the appropriate port. So, if the service has not launched yet, the init system (systemd) listens on that port instead and waits for a request to arrive.

Offline

Board footer

Powered by FluxBB