Wait Service is a pure rust program to test and wait on the availability of a service.

Overview

Wait Service

CI

Wait Service is a pure rust program to test and wait on the availability of a service.

Help

EXAMPLES:
wait-service tcp -h localhost -p 27017 -t 5 -- npm start   # Wait for localhost:27017 (max 5 seconds) and then run `npm start`
wait-service uds -p /var/run/app.sock -t 0 -- npm start    # Wait for /var/run/app.sock (forever) and then run `npm start`

USAGE:
    wait-service [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    tcp     Test and wait on the availability of a TCP service
    uds     Test and wait on the availability of a UDS service [aliases: unix]

License

MIT

You might also like...
Svix - A pure Rust and fully tested KSUID implementation

Svix - Webhooks as a service Svix-KSUID (Rust) A pure Rust and fully tested KSUID implementation This library is fully compatible with Segment's KSUID

A program written in Rust, that allows the user to find the current location of the International Space Station and see it on a map.

ISS Location ViewFinder A program written in Rust, that allows the user to find the current location of the International Space Station and see it on

Build your service-server fast, easy (and without hosting!)
Build your service-server fast, easy (and without hosting!)

service-io is a library to build servers that offering services with really little effort. Choose an input connector. Choose an output connector. Choo

Pure rust implementation of jq

XQ JQ reimplemented purely in Rust. Caution This program is under development. You probably want to use the original implementation of jq, or pure Go

A pure Rust PLONK implementation using arkworks as a backend.

PLONK This is a pure Rust implementation of the PLONK zk proving system Usage use ark_plonk::prelude::*; use ark_ec::bls12::Bls12; use rand_core::OsRn

Pure Rust library for Apache ZooKeeper built on tokio

zookeeper-async Async Zookeeper client written 100% in Rust, based on tokio. This library is intended to be equivalent with the official (low-level) Z

Pure rust implementation of python's random module with compatible generator behaviour.

pyrand Pure rust implementation of (parts of) python's random module with compatible PRNG behaviour: seeding with equivalent values will yield identic

Rust program to monitor Windows 10 Registry keys for changes or modifications.

RegMon This Rust program monitors changes to multiple registry keys in Windows 10 and writes the changes to a text file. It also periodically sends a

Waits until the exit code of a program is zero

Waitz A rust utility to wait that a program exits with 0. You need to wait for something to start up and don't know when it finishes?

Comments
  • Can not work properly in macOS 12 (ARM)

    Can not work properly in macOS 12 (ARM)

    ➜  wait-service git:(master) ✗ rustc --version
    rustc 1.57.0-beta.1 (d4647278c 2021-10-18)
    ➜  wait-service git:(master) ✗ cargo --version
    cargo 1.57.0-beta (c7957a74b 2021-10-11)
    ➜  wait-service git:(master) ✗ cargo run tcp wait-service --host blog.pan93.com --port 443
       Compiling libc v0.2.105
       Compiling proc-macro2 v1.0.30
       Compiling unicode-xid v0.2.2
       Compiling log v0.4.14
       Compiling syn v1.0.80
       Compiling autocfg v1.0.1
       Compiling cfg-if v1.0.0
       Compiling unicode-width v0.1.9
       Compiling ansi_term v0.11.0
       Compiling strsim v0.8.0
       Compiling vec_map v0.8.2
       Compiling pin-project-lite v0.2.7
       Compiling bitflags v1.3.2
       Compiling concat-with v0.2.6
       Compiling textwrap v0.11.0
       Compiling tokio v1.12.0
       Compiling quote v1.0.10
       Compiling mio v0.7.14
       Compiling atty v0.2.14
       Compiling terminal_size v0.1.17
       Compiling clap v2.33.3
       Compiling tokio-macros v1.5.0
       Compiling wait-service v0.1.0 (/Users/pan93412/wait-service)
        Finished dev [unoptimized + debuginfo] target(s) in 2.70s
         Running `target/debug/wait-service tcp wait-service --host blog.pan93.com --port 443`
    Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
    
    opened by pan93412 6
Owner
Magic Len (Ron Li)
https://magiclen.org/
Magic Len (Ron Li)
A cross platform tool which instantly notifies about COVID vaccine availability.

?? CoWIN Notifier ?? A cross-platform tool written in rust, which instantly notifies users about COVID-19 vaccine availability at their regions. Curre

Sanskar Jaiswal 20 May 20, 2021
A program written in pure Rust to query music info from mpd and display it in a notification.

musinfo A program written in pure Rust to query music info from mpd and display it in a notification. Note: Cover art is expected to be placed at /tmp

Cpt.Howdy 10 Aug 16, 2022
Program a Raspberry Pi Pico with pure Rust

pi-pico-rs Program a Raspberry Pi Pico with pure Rust. Get Started Install the latest version of Rust and the thumbv6m-none-eabi target. This is the p

Gerald Nash 5 Jul 29, 2022
A bare metal STM32F103C8T6/STM32F103 MCU program written in pure Rust

A bare metal (register level) STM32F103C8T6/STM32F103 MCU program written in pure Rust without any IDE, SDK, HAL or library, and no assembly code, the only tool required is the Rust compiler.

Hema Shushu 105 Dec 18, 2022
Watches changes in a rust project, runs test and shows friendly notification

Cargo testify Automatically runs tests on your Rust project and notifies about the result. Install Install prerequisites (for Debian/Ubuntu): apt-get

Sergey Potapov 77 May 16, 2022
This is a test to port C++'s ymfm and Rust's vgmplay to ESP32(Xtensa).

m5stack-chipstream This is a test to port C++'s ymfm and Rust's vgmplay to ESP32(Xtensa). Still slow and impractical, depending on the sound chip you

hiromasa 4 Feb 26, 2023
Cargo-BOJ: test and submit solutions to BOJ problems

Cargo-BOJ Test and submit solutions to BOJ (Baekjoon Online Judge) problems. Defaults are geared towards Rust solutions, but non-Rust usage is support

null 5 Apr 3, 2023
Transmute - a binary that works alone or in coordination with coverage formatter to report test quality

Transmute is a binary that works alone or in coordination with coverage formatter to report test quality. It will change your code and make the tests fail. If don't, we will raise it for you.

Victor Antoniazzi 5 Nov 17, 2022
Rustymind is a driver and parser for NeuroSky MindWave EEG headset written in pure Rust.

Rustymind is a driver and parser for NeuroSky MindWave EEG headset written in pure Rust. You can use it to connect, interact, and plot real time data from the headset.

Junjun Dong 34 Sep 13, 2022
mollusc is a collection of pure-Rust libraries for parsing, interpreting, and analyzing LLVM.

mollusc is a collection of pure-Rust libraries for parsing, interpreting, and analyzing LLVM.

William Woodruff 50 Dec 2, 2022