ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Daemonizing Salt Minion on MacOS

    IT Discussion
    macos macosx saltstack launchctl salt minion service daemon
    1
    1
    544
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmiller
      scottalanmiller last edited by

      MacOS always requires a few more steps than other platforms.

      Once you have a salt-minion installed, you can set it to be treated as a daemon with this command:

      sudo curl -L https://raw.githubusercontent.com/saltstack/salt/develop/pkg/darwin/com.saltstack.salt.minion.plist -o /Library/LaunchDaemons/com.saltstack.salt.minion.plist
      

      Then you can start (load) or stop (unload) with the launchctl utility.

      sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.minion.plist 
      sudo launchctl unload /Library/LaunchDaemons/com.saltstack.salt.minion.plist 
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post