- or download this
[Unit]
Description=Example Socket
...
[Install]
WantedBy=sockets.target
- or download this
[Unit]
Description=Example Service
...
[Service]
ExecStart=/path/to/your/executable
StandardInput=socket
- or download this
systemctl enable example-socket.socket
systemctl start example-socket.socket
- or download this
handle_conenction(\*STDIN);