-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
a5956c7
commit ffbb310
Showing
3 changed files
with
31 additions
and
4 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
[![GitHub release (with filter)](https://img.shields.io/github/v/release/spencerwooo/bitsrun-rs)](https://github.com/spencerwooo/bitsrun-rs/releases/latest) | ||
[![Crates.io](https://img.shields.io/crates/v/bitsrun?color=rgb(221%2C%20170%2C%2071))](https://crates.io/crates/bitsrun) | ||
|
||
๐ A headless login and logout CLI app for 10.0.0.55 at BIT, now in Rust. | ||
๐ A headless login and logout CLI for 10.0.0.55 at BIT, now in Rust. | ||
|
||
![screenshot](https://github.com/spencerwooo/bitsrun-rs/assets/32114380/011e7591-1474-4df8-a371-7a9da7629959) | ||
|
||
|
@@ -15,10 +15,11 @@ | |
|
||
- `curl -fsSL https://cdn.jsdelivr.net/gh/spencerwooo/bitsrun-rs@main/install.sh | sh -` | ||
|
||
#### Ubuntu / Debian | ||
#### Ubuntu / Debian (recommended for `systemd` support) | ||
|
||
- Download the latest `.deb` package from [Releases](https://github.com/spencerwooo/bitsrun-rs/releases/latest). | ||
- `sudo dpkg -i <file>.deb` | ||
- `sudo apt install ./<path/to/file>.deb` | ||
- Start `[email protected]` if desired: `sudo systemctl start bitsrun` | ||
|
||
#### Cargo | ||
|
||
|
@@ -54,6 +55,19 @@ bitsrun: <ip> (<username>) is online | |
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโ | ||
``` | ||
|
||
To keep the session alive, use `bitsrun keep-alive`: | ||
|
||
```console | ||
$ bitsrun keep-alive | ||
INFO bitsrun::daemon > starting daemon (<username>) with polling interval=3600s | ||
INFO bitsrun::daemon > <ip> (<username>): login success, | ||
... | ||
^C INFO bitsrun::daemon > <username>: gracefully exiting | ||
``` | ||
|
||
> [!NOTE] | ||
> Use available system service managers to run `bitsrun keep-alive` as a daemon. (e.g., `systemd` for Linux, `launchd` for macOS, and Windows Service for Windows). | ||
## Available commands | ||
|
||
```console | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=A headless login and logout CLI for 10.0.0.55 at BIT (%i). | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
User=%i | ||
Restart=on-abort | ||
ExecStart=/usr/bin/bitsrun keep-alive | ||
|
||
[Install] | ||
WantedBy=multi-user.target |