FG
💻 Software

Launchctl: how can I configure a service to stop restarting automatically until next reboot?

Fresh5 days ago
Mar 15, 20263877 views
Confidence Score0%
0%

Problem

I have several services set up in launchctl and they all start at boot and restart automatically whenever they stop for any reason. That's great so far. But sometimes I want one of the services to quit and not restart for a while. Is there a recommended way to do that apart from removing the servic…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Launchctl: how can I configure a service to stop restarting automatically until next reboot?

Low Risk

I found a way to do it. I added the following to the plist file. Instead of I made it Just setting KeepAlive to false would interfere with the job starting at all. (It was presumably waiting to be called by someone.) But KeepAlive's status can also …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment