Service configuration for MongoDB on MacOS fails to launch image

ProphetLamb's Avatar


04 Nov, 2023 08:45 PM

Good evening everyone,
enabling the MongoDB service for test runs with MacOS fails to start.
version: "{build}"

  - Visual Studio 2022
  - Ubuntu
  - macOS

  - mongodb

The build succeeds on Linux and Windows, but fails on MacOS with the following log.
Starting 'services'
Starting MongoDB
sudo: systemctl: command not found
Error enabling 'mongodb' service: Command exited with code 1

At first glance it appears as if the system is misidentified as Linux, instead of MacOS for starting MongoDB.
Any insight into this behaviour? Thanks in advance!

Have a nice evening

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac