-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ Rups also keeps your process alive by restarting it as soon as it dies. | |
A lot of the functionality is not implemented. This project should be | ||
considered under development... | ||
|
||
[](https://asciinema.org/a/124007) | ||
|
||
|
||
## Install | ||
|
||
|
@@ -28,3 +26,44 @@ considered under development... | |
|
||
1. Launch python through rups: `rups python` | ||
2. Connect to python through a separate terminal: `telnet localhost 3000` | ||
|
||
## Help | ||
|
||
``` | ||
$ rups -h | ||
Rups 0.1.0 | ||
Niklas Claesson <[email protected]> | ||
Rust process server | ||
USAGE: | ||
rups [FLAGS] [OPTIONS] <command>... | ||
FLAGS: | ||
-f, --foreground print process output to stdout (server) | ||
-h, --help Prints help information | ||
-I, --interactive Connect stdin to process input (server) | ||
--noautorestart do not restart the child process by default | ||
-n, --noinfo suppress messages (clients) | ||
-q, --quiet suppress messages (server) | ||
-V, --version Prints version information | ||
-w, --wait let user start process via telnet command | ||
OPTIONS: | ||
--autorestartcmd <autorestartcmd> Command to toggle autorestart of process | ||
-b, --bind <bind>... Bind to address (default is 127.0.0.1:3000 | ||
-c, --chdir <chdir> Process working directory | ||
--histsize <histsize> Set maximum telnet packets to remember | ||
--holdoff <holdoff> wait n seconds between process restart | ||
-k, --killcmd <killcmd> Command to send SIGKILL to process | ||
-l, --logbind <logbind>... Bind to address for log output (ignore any received data) | ||
-L, --logfile <logfile>... Output to logfile | ||
-r, --restartcmd <restartcmd> Command to start the process | ||
ARGS: | ||
<command>... | ||
All commands (killcmd, ...) take either a single letter or caret (^) + a single letter as arguments. For example '^x' | ||
for Ctrl-X or 'x' for literal x. | ||
EXAMPLES: | ||
rups bash | ||
Will launch bash as the child process using the default options. | ||
``` | ||
|
||
## Demo | ||
|
||
[](https://asciinema.org/a/124007) |