services.py 563 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. __author__ = "Christian Heider Nielsen"
  4. __doc__ = r"""
  5. Created on 31-10-2020
  6. """
  7. if __name__ == "__main__":
  8. # print()
  9. # print(sh.ls("/home/heider"))
  10. # print(sys.executable)
  11. # print(sh.systemctl('status', 'lightdm.service'))
  12. from draugr.os_utilities.linux_utilities import (
  13. RunAsEnum,
  14. remove_service,
  15. )
  16. remove_service("busy_script", run_as=RunAsEnum.root)
  17. # install_service(Path(busy_script.__file__), "busy_script",run_as=RunAsEnum.root)