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