This bot can remotely manipulate the systemd services of a server.
it is written by python.
- run
pip install -r requipments.txt
to get dependencies. - open config/general.yml, fill blanks(bot token,guild_id,role names,service_name)
- create and edit /etc/sudoers.d/distemctl, you can use following template
run_user ALL=(root) NOPASSWD: /usr/bin/systemctl start service_name
run_user ALL=(root) NOPASSWD: /usr/bin/systemctl stop service_name
run_user ALL=(root) NOPASSWD: /usr/bin/systemctl restart service_name
run_user ALL=(root) NOPASSWD: /usr/bin/systemctl status service_name
- inivite the bot to server
- run
python3 distemctl.py
Distemctl is in development, feel free to:
- file bugs using issues
- pushing new futures / bug fixes with pull requests
- ozraru
Refacted source code.