Skip to content

This bot can remotely manipulate the systemd services of a server.

License

Notifications You must be signed in to change notification settings

alphaRomeo323/Distemctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distemctl

This bot can remotely manipulate the systemd services of a server.

it is written by python.

Usage(easy)

  1. run pip install -r requipments.txt to get dependencies.
  2. open config/general.yml, fill blanks(bot token,guild_id,role names,service_name)
  3. 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
  1. inivite the bot to server
  2. run python3 distemctl.py

Development

Distemctl is in development, feel free to:

  • file bugs using issues
  • pushing new futures / bug fixes with pull requests

Special Thanks

  • ozraru
    Refacted source code.

About

This bot can remotely manipulate the systemd services of a server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages