From b875a6fecf1830810e68d6394c72c4e28a8ba72f Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Mon, 28 Jun 2021 07:26:54 +0530 Subject: [PATCH] changes --- Cargo.toml | 1 + README.md | 2 ++ rasp_mgr.service | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 rasp_mgr.service diff --git a/Cargo.toml b/Cargo.toml index 19ce046..c10c8d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ description = "A simple server manager for local newtrok" authors = ["PiyushXCoder "] license = "GPL 3.0" readme = "README.md" +repository = "https://github.com/PiyushXCoder/Rasp-Manager" keywords = ["server", "raspberry pi"] edition = "2018" diff --git a/README.md b/README.md index 5885006..bfb6734 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ A simple server manager for local newtrok. Its quite helpful when you are hostin Feel free to add more commands in `src/command.rs`. Contributions and improvements are always welcomed. +Edit systemd service `rasp_mgr.service` as per your need and place it in `/usr/lib/systemd/system/` + ![Alt text](screenshot.png "Screenshot") # LICENSE diff --git a/rasp_mgr.service b/rasp_mgr.service new file mode 100644 index 0000000..99cc9fa --- /dev/null +++ b/rasp_mgr.service @@ -0,0 +1,11 @@ +[Unit] +Description=A simple server manager for local newtrok +After=network.target + +[Service] +Type=simple +ExecStart=/opt/rasp_mgr/bin/rasp_mgr --addr 0.0.0.0 --port 80 --static_dir /opt/rasp_mgr/static +LimitNOFILE=infinity + +[Install] +WantedBy=multi-user.target