This file contains hidden or 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
#!/bin/sh | |
# | |
# Tries to restart the given systemd UNIT until it is active. | |
# | |
unit="$1" | |
#set -x | |
# Prevent output as it clutters up journal/syslog. |
This file contains hidden or 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=Wait for the network to be usable | |
Documentation=man:ifup(8) | |
DefaultDependencies=no | |
Conflicts=shutdown.target | |
After=network.target | |
Before=network-online.target | |
[Service] | |
Type=oneshot |
This file contains hidden or 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
% ./server.py & | |
% ./client.py | |
% ./cli.py info my favorite message of the day | |
% ./cli.py error nope, that did not work |