Skip to content

Instantly share code, notes, and snippets.

View nuthub's full-sized avatar

Julian Flake nuthub

View GitHub Profile
[Unit]
Description=Wormhole Transit Relay
[Service]
Type=forked
ExecStart=/opt/tr-venv/bin/twistd transitrelay
Restart=on-failure
[Install]
WantedBy=default.target
#!/usr/bin/env bash
## run (only once) processes which spawn with the same name
function run {
if (command -v $1 && ! pgrep $1); then
$@&
fi
}
## run (only once) processes which spawn with different name