Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi1:systemd.socket

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

lpi1:systemd.socket [2020/03/13 12:15] (aktuell)
ingo_wichmann c
Zeile 1: Zeile 1:
 +TODO: noch nicht fertig
 +
 +  systemctl edit --force --full psax.service
 +
 +<file txt /​etc/​systemd/​system/​psax.service>​
 +# /​etc/​systemd/​system/​psax.service
 +[Unit]
 +Description=show processes
 +Requires=psax.socket
 +
 +[Service]
 +ExecStart=/​usr/​bin/​ps ax
 +User=nobody
 +</​file>​
 +
 +  systemctl edit --force --full psax.socket
 +
 +<file txt /​etc/​systemd/​system/​psax.socket>​
 +[Unit]
 +Description=Show Processes on port 48620
 +
 +[Socket]
 +ListenStream=48620
 +
 +[Install]
 +WantedBy=sockets.target
 +</​file>​
 +
 +  lsof -i 48620
 +  systemctl start psax.socket
 +  lsof -i 48620
 +  nc localhost 48620
  
lpi1/systemd.socket.txt · Zuletzt geändert: 2020/03/13 12:15 von ingo_wichmann