c8ec0c14cd66781c92e2ed732996957497035f8f
tg_bots_scripts
Scripts for telegram bot for (re)start/stop without pain.
Usage
- Put service.py in yours project.
- Set name of main script -
main.py - Use the
service.pyso:
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
Description
Scripts for python scripts for (re)start/stop without pain. **UNIX-ONLY!!!**
Languages
Python
97.6%
Shell
2.4%