Commit 110b5628 authored by segfault's avatar segfault

Remove unused code

parent a16959e9
......@@ -18,16 +18,6 @@ class SystemdManager(object):
def stop(self, service_name: str):
sh.systemctl("-M", self.name, "stop", service_name)
def mask(self, service_name: str):
"""Creates a symlinks /etc/systemd/system/$service_name -> /dev/null
We use this to prevent automatic starts of services after package installation"""
logger.debug("Masking systemd unit %r", service_name)
sh.systemctl("-M", self.name, "mask", service_name)
def unmask(self, service_name: str):
logger.debug("Unmasking systemd unit %r", service_name)
sh.systemctl("-M", self.name, "unmask", service_name)
def is_running(self, service_name: str) -> bool:
try:
sh.machinectl("show", self.name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment