Skip to content

Commit

Permalink
Really start unit in toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Mar 26, 2024
1 parent 41e2b89 commit b82e4fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/offspot_demo/toggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SystemdNotLoadedError,
SystemdNotRunningError,
check_systemd_service,
start_systemd_unit,
stop_systemd_unit,
)

Expand All @@ -39,6 +40,7 @@ def toggle_demo(mode: Mode) -> int:
DOCKER_COMPOSE_SYMLINK_PATH.symlink_to(DOCKER_COMPOSE_MAINT_PATH)

logger.info("Starting systemd unit")
start_systemd_unit(systemd_unit_fullname)

logger.info(
f"Sleeping {STARTUP_DURATION} seconds to check system status still ok after a"
Expand Down

0 comments on commit b82e4fb

Please sign in to comment.