Skip to content

Instantly share code, notes, and snippets.

@zuigon
Created January 19, 2021 22:30
Show Gist options
  • Save zuigon/10b83016d9424dd5abb8713d091a24e3 to your computer and use it in GitHub Desktop.
Save zuigon/10b83016d9424dd5abb8713d091a24e3 to your computer and use it in GitHub Desktop.
[Unit]
Description=A Socket
[Socket]
ListenStream=127.0.0.1:9999
Accept=yes
[Install]
WantedBy=sockets.target
[Unit]
Description=A Service
Requires=ci.socket
[Service]
Type=simple
# StandardInput=socket
ExecStart=%h/test.sh
TimeoutStopSec=5
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment