96 questions
0
votes
1
answer
89
views
LaunchAgent refuses to run shell script despite throwing no obvious errors
This question is similar to LaunchAgent doesn't run shell script, but the solutions there didn't work for me as my situation is presumably much more complex.
I have the following Bash script:
#!/...
0
votes
0
answers
239
views
MacOS: trying to load evicted file from launch'd shell script, leading to resource deadlock error
On MacOS Sonoma (14.5) with iCloud synchronization switched on, I am trying to access or load a file in a (bash) shell script. Simply via:
cat DSC_0001.jpg >/dev/null
(Note that this simple line ...
1
vote
0
answers
69
views
MacOS + launchd + python + mariadb = server connection fail
I am new to this group. Hopefully someone can provide some guidance to solve my issue... I am attempting to schedule the running of my python program on my Mac using launchd.
I have hit a roadblock ...
0
votes
1
answer
189
views
Copy to Google Drive on Mac works in shell script but not in cron or launchctl job
I am trying to setup a nightly task on my Mac to edit a file and then copy that file to my Google Drive which is accessible directly from my Mac's file system through Google Desktop integration. I ...
0
votes
0
answers
129
views
MacOS App: How do we launch bundled helper program from main application?
I would like to achieve simple thing but struggling for the whole day. :(
I made a simple macOS app. In AppDelegate, applicationDidFinishLaunching, I would like to execute a helper program which is ...
3
votes
3
answers
8k
views
launchctl bootout on macOS Sonoma is failing with EIO = "Input/output error"
My macOS app stopped working on macOS 14.4.1 (Kernel: Darwin v.23.4.0), or "Sonoma". I started looking into it, and it turns out that when I try to remove my launch agent:
/bin/launchctl ...
0
votes
0
answers
60
views
Macos:Launch Daemon LaunchCTL Error 129: Running a service when a USB is connected
I am currently trying to implement a launch daemon, such that when a USB device is connected, a shell script is ran. When I try to register the following daemon using
launchctl load com.myplist.plist ,...
0
votes
0
answers
364
views
How to run python script at OS X Startup
I have macbook air (M1 chip). Installed: mac os ventura 13.5. I have a python app that displays a timer in taskbar. I use rumps to do that. I want to launch on startup. I tried to do it with:
...
2
votes
1
answer
949
views
Brew service getting error in httpd as Bootstrap failed: 5: Input/output error
When I try to brew services start httpd to start, I am getting the below error:
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while ...
1
vote
0
answers
21
views
jq command not found when running script inside plist [duplicate]
I am having trouble getting a bash script running through a plist that will be launched through launchctl.
When I run it normally through bash by running sh script.sh everything works fine and it runs ...
2
votes
1
answer
3k
views
How to start/stop my launch agent in all logged in sessions from a root user process?
I'm writing an installer for my launch daemon, and for a launch agent, that will run in every logged in user session on macOS. The installer will be running as an admin, and thus I can install and ...
0
votes
0
answers
2k
views
How to start a launch agent on demand after the installation?
I've coded my launch daemon and a launch agent for macOS. When the app is installed, I need to run both the daemon and the agent. I place the .plist for the deamon into /Library/LaunchDaemons and then ...
1
vote
1
answer
863
views
Bootstrap failed: 134: Service cannot load in requested session (macOs Ventura 13.0)
Trying to run this command
sudo launchctl bootstrap user/501 ~/Library/LaunchAgents/io.mutagen.mutagen.plist
and getting this error
/Users/simanta/Library/LaunchAgents/io.mutagen.mutagen.plist: ...
0
votes
1
answer
300
views
Launchd 'Invalid Property List'
I was hoping someone could point out where I might be going wrong with a launchctl script I'm trying to write and launch.
The intention is to run a python script I've managed to get working, everyday ...
0
votes
0
answers
179
views
Launchctl refusing to launch postgres as a Daemon
I've written a plist file to try to get Postgres to load on startup on Mac OS X but I can't get it to start the service. The plist file is saved in /Library/LaunchDaemons.
<?xml version="...