Created
January 19, 2021 22:30
-
-
Save zuigon/10b83016d9424dd5abb8713d091a24e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=A Socket | |
[Socket] | |
ListenStream=127.0.0.1:9999 | |
Accept=yes | |
[Install] | |
WantedBy=sockets.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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