I'm trying to setup a bash script as a network service listening on tcp port 6666. But service fail at startup with this errors : heartbeat]# systemctl status heartbeat.service heartbeat.service - Service de collecte des signaux de vie   Loaded: loaded (/etc/systemd/system/heartbeat.service; disabled; vendor preset: disabled)   Active: failed (Result: resources)mai 12 12:32:48 Chalet systemd[1]: heartbeat.service: Got more than one socket.mai 12 12:32:48 Chalet systemd[1]: heartbeat.service: Failed to run 'start' task: Invalid argumentmai 12 12:32:48 Chalet systemd[1]: Failed to start Service de collecte des signaux de vie.mai 12 12:32:48 Chalet systemd[1]: heartbeat.service: Unit entered failed state.mai 12 12:32:48 Chalet systemd[1]: heartbeat.service: Failed with result 'resources'.mai 12 12:33:18 Chalet systemd[1]: heartbeat.service: Got more than one socket.mai 12 12:33:18 Chalet systemd[1]: heartbeat.service: Failed to run 'start' task: Invalid argumentmai 12 12:33:18 Chalet systemd[1]: Failed to start Service de collecte des signaux de vie.mai 12 12:33:18 Chalet systemd[1]: heartbeat.service: Failed with result 'resources'.I don't understand wath this message heartbeat.service: Got more than one socket mean. Can u help me understand where i'm wrong ?I configured systemd like this : heartbeat.socket :[Unit]Description=Socket pour le demon heartbeatPartOf=heartbeat.service[Socket]ListenStream=0.0.0.0:6666Accept=true[Install]WantedBy=sockets.targetheartbeat.service :[Unit]Description=Service de collecte des signaux de vieAfter=network.target heartbeat.socketRequires=heartbeat.socket[Service]Type=simpleExecStart=/bin/bash /usr/heartbeat/heartbeat.bashRemainAfterExit=noStandardInput=socketStandardOutput=inherit[Install]WantedBy=multi-user.target/usr/heartbeat/heartbeat.bash is : #!/bin/bashwhile truedo        read -r entree        if [[ $entree == frequence ]]        then                echo 3600        fi        if [[ -n $entree ]]        then                logger heartbeat receveid : $entree        fidone
How to configure systemd to turn a simple script with standardIO in a network service
bash;networking;systemd;socket activation