ServerLauncher

Crates.ioServerLauncher
lib.rsServerLauncher
version
sourcesrc
created_at2024-11-14 05:43:24.273779
updated_at2024-11-14 10:45:26.911901
descriptionA simple server launcher written in Rust
homepagehttps://www.iotlearn.cn
repositoryhttps://github.com/xsxz01/ServerLauncher
max_upload_size
id1447454
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Pang (xsxz01)

documentation

README

ServerLauncher

 

ServerLauncher

Github top language Github language count Repository size License Github issues Github forks Github stars

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


:dart: About

A server launcher for starting and managing servers.

:sparkles: Features

  • Start and manage the server with a single command
  • Support multiple servers
  • Custom startup commands
  • Custom stop commands
  • Easy to use
  • Use Rhai (A script as similar as Javascript with Lua) script to control the server
  • More features to come...

:rocket: Technologies

The following tools were used in this project:

:white_check_mark: Requirements

Before starting :checkered_flag:, you need to have Git and Node installed.

:checkered_flag: Install

  1. Install the binary executable cli.
cargo install ServerLauncher
  1. create the config file
mkdir  lua
touch lua/main.rhai
  1. And put it in the config file lua/main.rhai
fn start() {
    run_script("/data/BDZC/LogServer/", "start.sh", "");
}
fn stop() {
    run_script("/data/BDZC/LogServer/", "stop.sh", "");
}

start method: start the server
stop method: stop the server
run_script method: run the script,it has three parameters, the first is the path of the script, the second is the script name, the third is the script parameters.

:checkered_flag: Starting

# Clone this project
$ git clone https://github.com/xsxz01/ServerLauncher

# Access
$ cd ServerLauncher

# Build Binary Executable
$ cargo build

:memo: License

This project is under license from MIT. For more details, see the LICENSE file.

Made with :heart: by Pang

 

Back to top

Commit count: 10

cargo fmt