4

I am trying to create Prometheus alert manager as a service, so I was looking at one of the tutorial where they create alert manager service in Linux in etc/systemd/system/alertmanager.service. I was wondering what the alternative path be in MAC? In MAC, I cant find /etc/systemd/system, I can go until /etc but there is no systemd under that folder.My goal is whenever I start my alert manager it should go to this service file under /etc/systemd/system and execute the rules in yaml file.

vi /etc/systemd/system/alertmanager.service

enter image description here

Please let me know where could I go and create my service file in MAC

shwetha
  • 41
  • 1
    I'd recommend you ask in a forum dedicated to MAC's - clearly MAC's don't use systemd, so, the way to achieve what you want is MAC specific – Bravo Dec 15 '21 at 23:50
  • 3
    What is MAC? Surely people aren’t still calling macOS “MAC”. – jsbillings Dec 17 '21 at 01:57

1 Answers1

7

If you are asking about macOS, the init system is called launchd.

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html

In IT always use most precise names as possible! For example MAC can mean Mandatory Access Control, which is something completely different.

Kusalananda
  • 333,661
etosan
  • 1,054