Questions tagged [launchd]

A system for starting, stopping, and managing automated processes.

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

Stop malware from being executed by launchd

I've got this program running on my computer, /var/root/Library/Application Support/.SectionChannel.dp/SectionChanneldd, which Norton has identified as the malware OSX.Malcol. However, Norton has ...
3
votes
0answers
26 views

How to figure out how a process auto started itself after login?

(I added an Update in the end.) My related questions: How to delete hidden login iterms from backgrounditems.btm? A launchd job without plist file, how does that work and how to find what job ...
1
vote
2answers
30 views

A launchd job without plist file, how does that work and how to find what job triggers it?

I am having a hard time to figure out how those unwanted program autostarted in the system. I am running MacOS Big Sur. Take an example, Please have a look at the following job: $ launchctl list | ...
0
votes
1answer
19 views

How to delete hidden login iterms from backgrounditems.btm? CML way is prefered

I am running MacOS Big Sur. I installed some apps downloaded online. I found out many apps were started automatically at startup. By googling and examining my system, I figured out they were started ...
1
vote
0answers
9 views

How to see which services were unloaded using “launchctl unload -w” on macOS?

I ran the following to disable Adobe background services. BUNDLE_IDENTIFIER_PREFIX="com.adobe" sudo launchctl unload -w /Library/{LaunchAgents,LaunchDaemons}/$BUNDLE_IDENTIFIER_PREFIX*.plist ...
1
vote
0answers
18 views

dbus-daemon can not started

I have MBP M1, and install dbus with homebrew, but it sounds that dbus was not started. How can I start dbus? dbus version: 1.12.20 Thanks $ brew services Name Status User Plist dbus ...
0
votes
0answers
7 views

Execute command chain with launchd

I would like to mount a disk image, rsync a folder with the disk image, and unmount the disk image. So I split hidutil attach /Users/username/Backup.sparsebundle && /opt/homebrew/bin/python3 /...
0
votes
0answers
13 views

Launchct GD Extension with Freetype support not working on php

I'm Running a .plist php file previously, I've installed phpbrew and use 7.3.11 php version. Then I've just installed GD extension with freetype support I can running my php files into Macos terminal ...
0
votes
0answers
13 views

Service exited with abnormal code: 101 running user agent

Trying to run a user agent: launchctl load myagent.plist launchctl start myagent.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple ...
2
votes
0answers
16 views

MacPorts dbus session not running

2020 MacBook Pro M1 (Apple silicon) I've installed MacPorts dbus with sudo port install dbus, and then loaded with sudo port load dbus which responds ---> Loading startupitem 'dbus-system' for ...
2
votes
0answers
283 views

Macbook (Big Sur) not asking for password after closing lid

Problem: This past month I noticed my MacBookPro does not lock the screen after closing the lid. This happened twice in the past month and occurred again today. The logs are filled with google chrome ...
0
votes
0answers
143 views

How do you turn on crontab logging on Big Sur?

I am running macOS Big Sur 11.2.1 and have several crontab jobs set up and they work fine, but I want to turn on the logging of all of my crontab jobs. I have read that with the recently releases such ...
0
votes
2answers
50 views

launchd, how to run a command every 3 minutes, during working hours on a weekday?

I know cron and that is fairly simple */3 9-17 * * 1-5 myCommand How does one do the same in launchd?
1
vote
1answer
15 views

How to get an ssh tunnel started every time my Mac boots?

I'm trying to run a script at startup to tunnel to a remote host over a random port. I want to leave a cookie on the remote machine to say which port I chose. Something like this: # to make a record ...
0
votes
0answers
28 views

How to start an LaunchAgent on login via ssh?

I want to start an agent when I log in on my machine via ssh. I created the plist and set the key LimitLoadToSessionType to StandardIO according to the quite old Technical Note on daemons and agents, ...
1
vote
1answer
60 views

help isolating why MacBookPro Late-2013 15in Retina with HighSiera randomly shuts down?

While using my MacBook Pro and often while using chrome, my macbook does dark for a sec and then the computer shuts down. I am not sure if this is related to chrome but I tried: Resting SMC Running ...
1
vote
1answer
120 views

How can I debug a user LaunchAgent that doesn't seem to start or load with launchctl?

Problem Description Running the following user LaunchAgent does not show a started job, nor does the job log an error or do anything detectable. The Vault commands embedded in the plist file work fine ...
0
votes
0answers
6 views

How to start a service for ssh socks proxy?

I want to start the following command as a service on Mac OS X. Could anybody show me what is the correct way to do it on Catalina? Thanks. $ ssh -D 1337 -q -C -N -f user@ma.ttias.be https://ma.ttias....
1
vote
1answer
114 views

Why won't my iMac boot? (com.apple.displaypolicyd exited with abnormal code: 1)

I'm using a 21.5-inch 2017 iMac with 3.6GHz i7 CPU, and Radeon Pro 560 graphics card. I'm running Mac OS Mojave 10.14.6 For the last week, the iMac will not finish booting. The progress bar gets ...
1
vote
2answers
52 views

Why does Mail.app take three minutes plus to open?

For some time now, Mail.app takes three minute or more to display its window, and for that interval, is labeled "not responding." There are several things that are related somehow: During ...
0
votes
0answers
99 views

USB Devices not mounting in Mac OS 11.1 Big Sur

I can't get USB devices to mount to my MacBook Pro (mid ‘14) unless they are plugged in at the time it boots. Even then the device can't be re-mounted after being removed. I've tried this with a flash ...
0
votes
0answers
24 views

Setting environment variable for all launchd services

I set the following global environment variables to launchd derives services : sudo launchctl setenv CA_DEBUG_TRANSACTIONS 1 sudo launchctl setenv CA_ASSERT_MAIN_THREAD_TRANSACTIONS 1 and indeed I ...
0
votes
0answers
36 views

Sound crackled on Macook pro 16" - How to fix it?

On my macbook pro 16" with Big Sur 11.1, I have since a relative long time a problem with my speakers. If I don't reboot during multiple days, when I listen to music with "Musique" ...
0
votes
1answer
35 views

launchd plist with large StartInterval never runs

I'm trying to run a command once per day like so: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www....
0
votes
0answers
367 views

launchctl issues: Bootstrap failed: 5: Input/output error

Before Big Sur I was able to use launchtl like this: plst file: Label com.iPinky7.removeLogs Program /Users/michael/Downloads/Python/scripts/removeLogs.sh ProgramArguments ...
0
votes
2answers
69 views

Mac daemon not able to run bash script

Originally asked on Stack Overflow, but it may be more suited for here. Wherever it’s answered first, I’ll be sure to update the counterpart question with the same answer. I've already checked this ...
0
votes
0answers
36 views

Run SSH on different port on MacOS

Description: I have 2 types of MacOS VMs in my environment: 1) admin@vm1 ~ % system_profiler SPSoftwareDataType Software: System Software Overview: System Version: macOS 11.1 (20C69) Kernel ...
0
votes
0answers
41 views

LaunchAgent ceased to work after upgrading to Big Sur (Error: Unable to access file on desktop)

I had a home made LaunchAgent that worked fine in Catalina but after upgrading to Big Sur it refuses to launch. The agent is very simple, it just launches a java program (jar) I have on my desktop, ´/...
2
votes
1answer
53 views

When do processes run under root by default?

I know that when I use "sudo" an application can run under root, or if a window appears saying "Application wants to make changes to the system, enter your password for this", they ...
0
votes
0answers
19 views

How to start disabled Launch Daemon?

There are several launch daemons which I don't need running every day, but I want to run occasionally, for example Wireshark. I disable it like this so it doesn't run at startup: sudo launchctl ...
1
vote
1answer
26 views

LaunchAgents zip/tar not working in plist?

I created the plist for a 'custom' backup agent (via LaunchAgent). The (zip) program is called, but I keep getting a 'zip error: Nothing to do!' in my logs. I assume it has something todo with ...
0
votes
0answers
39 views

When to use gui or user domain in launchctl?

In recent versions of macOS, launchctl can be used to enable/disable services for a user or for the system. For example to disable a user Launch Agent, I can run: launchctl disable user/$(id -u)/...
1
vote
1answer
17 views

Running a cleanup of icloud desktop on load

I have the following launchd saved as an agent in: /Users/my_name/Library/LaunchAgents <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD ...
2
votes
1answer
47 views

Stopping com.mysql.mysqld from launching over and over and over agin

System messages are showing repeated Dec 25 14:42:02 ROLANDs-MacBook-Pro com.apple.xpc.launchd[1] (com.mysql.mysqld): Service only ran for 0 seconds. Pushing respawn out by 10 seconds. every one of ...
0
votes
0answers
19 views

What happens when you disable launch daemon?

Recent versions of macOS have a new syntax for launchctl which seems to favor Terminal commands over manually editing plist files. I'm trying to understand how this works, and the interaction between ...
0
votes
0answers
17 views

Package macOS launchd daemon with bundled jre

I have been reading up on how to go about bundling an openjdk jre with a launchd daemon to be packaged for macos, but I seem to not be finding very clear information. The how-to's all seem to focus on ...
0
votes
0answers
23 views

launchd script won't send mail

I have a launch daemon that runs but does not send mail. I have enabled it with launchctl enable system/com.me.helloworld, and when I load it manually it sends mail, but it does not send mail on boot. ...
7
votes
1answer
775 views

What is this globe icon with blue down arrow in my menu bar?

At far left of my top bar you can see a globe-like network sort of icon with what I interpret as a blue download arrow. This icon appeared recently for the first time for unknown reasons. Clicking it, ...
0
votes
1answer
27 views

How to fix LaunchAgent scandir: [Errno 1] Operation not permitted error?

<key>ProgramArguments</key> <array> <string>/usr/local/bin/backup.sh</string> </array> Running /usr/local/bin/backup.sh requires access to ~/Documents. My gut ...
1
vote
1answer
44 views

How to extend PATH of LaunchAgents in ~/Library/LaunchAgents?

I noticed that ~/.zshrc is not loaded... I need to add /usr/local/bin to PATH.
0
votes
0answers
17 views

Launchd continues despite everything

I have a problem with launchd, I created a LaunchDaemon at the time, it didn't work and I then deleted it without unloading it. When I was watching the launchd timeouts with tail -f /var/log/system....
0
votes
0answers
11 views

Mac Pro Overnight Freeze

My Mac Pro (El Capitan) has an issue that happens quite often. Every morning I expect to have to force quit applications and restart, in order to get the day rolling. It's a routine that I've become ...
0
votes
0answers
14 views

simctl errors in Console

I noticed that my Macbook Pro 2015 was making a fan noise in the morning, even though the lid was closed and it had been put to sleep 10 hours ago. When I looked at system.log in the Console, it's ...
2
votes
2answers
322 views

Using launchd to clear bash history?

Clarification: Am not looking to destroy history, am looking for means to periodically purge it via launchd for security purposes Have been using cat /dev/null > ~/.bash_history to clear bash ...
1
vote
1answer
111 views

How do I find and kill an application which keeps restarting?

I am writing an application in Swift and I have attempted to allow it to launch at login by following a number of tutorials. This involves creating a launcher application and enabling it using ...
1
vote
1answer
61 views

Purpose of XPCservices and Agent related to an Application

Just for general knowledge what is the purpose of XPCServices and Agent related to a specific application? I will try to give you an example. I noticed when I launch the Calendar Application I see the ...
1
vote
2answers
313 views

macOS Catalina RAM usage - 2GB at boot?

I am trying to understand why my almost factory settings 13-inch MacBook Air 2017 with 8GB RAM available takes 2.3GB to just boot. The result is that if I start having Chrome+Dropbox+something to ...
0
votes
0answers
12 views

Temporarily halt logins while launchd is running a timed script

I have a launchd triggered timed script that checks if a user is not logged in and runs a one-time folder clean-up operation when they’re not. The script is fast, but I still don’t want the user ...
1
vote
2answers
86 views

Display Terminal message on login

I want to display something like ### this is a test ### when a new Terminal window is open (and ideally, in a way that can be disabled easily). On Linux this was straightforward; you'd create a script ...
1
vote
1answer
26 views

Unable to run Bash 5 from launchd

I have the following launchd agent: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/...

1
2 3 4 5
13