Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vanillaiice/vrespawn
V program to respawn a program after it gets killed.
https://github.com/vanillaiice/vrespawn
rescue respawn v vlang
Last synced: about 2 months ago
JSON representation
V program to respawn a program after it gets killed.
- Host: GitHub
- URL: https://github.com/vanillaiice/vrespawn
- Owner: vanillaiice
- License: bsd-3-clause
- Created: 2023-07-31T16:46:34.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-02T19:32:14.000Z (about 1 year ago)
- Last Synced: 2023-12-02T20:29:17.647Z (about 1 year ago)
- Topics: rescue, respawn, v, vlang
- Language: V
- Homepage:
- Size: 497 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# V Respawn
Respawn a program after it gets killed.
## Usage
```
respawn --program example --max-retry 2 --retry-time 3 --args "-n Ed Edd Eddy"
```## Arguments
### ```--program``` or ```-p``` (mandatory)
Path to the program to respawn after it gets killed.
### ```--args``` or ```-a``` (optional)
Arguments to be passed to the program. The arguments must be enclosed in single or double quotes.
### ```--work-folder``` or ```-f``` (optional)
Path to the work folder for the program. If omitted, the value will be the current directory.
### ```--max-retry``` or ```-r``` (optional)
Number of times to respawn the program. If omitted, the value will be 3.
### ```--retry-time``` or ```-t``` (optional)
Time in seconds between each respawn. If omitted, the value will be 0.
# Installation
```
> git clone https://github.com/vanillaiice/vrespawn
> cd vrespawn
> v .
// or
> make
```## Development dependencies
- v
- make (optional)
- MinGW-w64 (optional, for windows cross compilation)## Licence
BSD-3-Clause