Update README.md
This commit is contained in:
parent
6396874ef0
commit
67d36300db
29
README.md
29
README.md
@ -1,3 +1,32 @@
|
||||
# tg_bots_scripts
|
||||
|
||||
Scripts for telegram bot for (re)start/stop without pain.
|
||||
|
||||
## Usage
|
||||
1. Put service.py in yours project.
|
||||
2. Set name of main script - `main.py`
|
||||
3. Use the `service.py` so:
|
||||
```
|
||||
Usage: python service.py <option>
|
||||
|
||||
Options:
|
||||
status - Get status of main script.
|
||||
start - Start main script.
|
||||
stop - Stop main script.
|
||||
restart - Restart main script.
|
||||
```
|
||||
|
||||
## EXIT CODES MEANING
|
||||
* status
|
||||
* 0 - running
|
||||
* 1 - stopped
|
||||
* start
|
||||
* 0 - started
|
||||
* 1 - can't start
|
||||
* 2 - already running
|
||||
* stop
|
||||
* 0 - stopped
|
||||
* 2 - already stopped
|
||||
* restart
|
||||
* 0 - restarted
|
||||
* 1 - can't start
|
||||
Loading…
Reference in New Issue
Block a user