All Questions
15
questions
0
votes
1
answer
1k
views
MacOS - Scheduled Launch Daemon Not Running
I'm creating a launch daemon on my MacBook (with Monterrey installed) to bring back the battery percentage to the lock screen. I was able to craft the following command and run it in the terminal ...
1
vote
0
answers
216
views
Why are my LaunchDaemons disappearing after reboot in Mac OS Catalina?
I've got a group of launchds which I've been using across a dozen OS versions in Mac. These do various things (such as shut off TimeMachine for parts of the day when the system is most heavily used, ...
1
vote
1
answer
2k
views
How can I make a LaunchDaemon run an app at login?
I have an internally-maintained macOS app for my macOS Catalina-based enterprise environment which:
Must run as root (it accesses a privileged device API)
Runs in the background without a UI (via ...
1
vote
1
answer
456
views
Launchd plist runs everyday instead of only weekends
Scenario: I need to force a reboot as a Launch Daemon at a specific time only on Saturdays and Sundays.
Output
The reboot command gets launched at the specific time everyday instead only on ...
0
votes
1
answer
431
views
Script to run Adobe Update Remote Manager as Launch Daemon at Boot without MDM
Scenario: I need to figure out how to run the /usr/local/bin/RemoteUpdateManager at DeepFreeze maintenance cycle. During this maintenance cycle, the computers will restart to the login screen and ...
5
votes
0
answers
256
views
How to prevent non-root load of a LaunchDaemon
I want to prevent a LaunchDaemon (/Library/LaunchDaemons/com.mycorp.service.plist) from being loaded by a non-root user.
Running sudo launchctl load /Library/LaunchDaemons/com.mycorp.service.plist ...
2
votes
1
answer
295
views
Cannot load rsync daemon in Sierra. Log shows: "assertion failed: 16G1408: libxpc.dylib"
I'm trying to start rsync --daemon on Sierra (10.12.6), using launchctl. It used to work fine (last time in Mavericks, I think). But now on Sierra, the daemon does not start and grep rsync /var/log/...
2
votes
0
answers
400
views
Disable Launchd based daemon sudden termination upon shutdown
I'm running my own daemon under macOS Sierra and High-Sierra, and get unexpected behavior upon shutdown. according to the manual of daemon life cycle, it says that ...
If the system is being shut ...
3
votes
2
answers
5k
views
How do I kill a daemon and not have it open up again if I can't find it in the LaunchAgents or LaunchDaemons?
So I think I downloaded a program from Avatron called Airconnect. I'm not sure, but their website was purple when I looked it up. Anyway, now everytime I check my activity monitor, com.avatron....
0
votes
1
answer
683
views
Launchd based daemon exit with abnormal code 1, without crash log
I've seen many questions that relate to specific daemons/applications that exit on this same exit code (=1). All scenarios seems unique and unconnected.
I created a daemon of my own, and also got the ...
5
votes
1
answer
3k
views
Where does the OS X routing table come from?
Trying to find out where the initial routing configuration for OS X is stored (plist, or wherever), and what happens at startup to read that configuration and configure the network interface(s).
5
votes
3
answers
17k
views
Enable SMB sharing from command line
On OS X 10.8, using terminal commands, I'd like to enable SMB sharing as if I had ticked the following checkbox under System Preferences - Sharing - File Sharing - Options:
I've tried the following ...
0
votes
1
answer
657
views
Setting .plist path to user Library
I have created a OS X launch agent that is installed per user. It is listening socket and automatically launched when socket connection arrives. On my .plist I have
<key>ProgramArguments<...
4
votes
1
answer
2k
views
Daemons or other processes responsible for dictation in 10.8?
Dictation in Mountain Lion is a nice little feature that works great for me. However I often need to switch between dictation languages, so going through the System Preferences is way too many clicks ...
2
votes
3
answers
2k
views
Does changing a daemon's plist file extension prevent it from being loaded?
I particularly want to disable:
/private/etc/mach_init.d/dashboardadvisoryd.plist.disabled, but in general for any daemon.
Does changing its plist extension prevent it from loading?
In the past I ...