Skip to content

Commit

Permalink
Use new name of the is_service_startable function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Mar 28, 2024
1 parent 82eac56 commit 0ce9120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self):
"sw-engine.service",
]
self.plesk_systemd_services = [
service for service in plesk_known_systemd_services if systemd.is_service_can_be_started(service)
service for service in plesk_known_systemd_services if systemd.is_service_startable(service)
]

# Oneshot services are special, so they shouldn't be started on revert or after conversion, just enabled
Expand All @@ -38,9 +38,9 @@ def __init__(self):

# We don't remove postfix service when remove it during qmail installation
# so we should choose the right smtp service, otherwise they will conflict
if systemd.is_service_can_be_started("qmail.service"):
if systemd.is_service_startable("qmail.service"):
self.plesk_systemd_services.append("qmail.service")
elif systemd.is_service_can_be_started("postfix.service"):
elif systemd.is_service_startable("postfix.service"):
self.plesk_systemd_services.append("postfix.service")

def _prepare_action(self):
Expand Down

0 comments on commit 0ce9120

Please sign in to comment.