Questions tagged [launchctl]

91 questions
1
vote
1 answer

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 executing; `/bin/launchctl bootstrap gui/501…
Script Host
  • 911
  • 1
  • 11
  • 22
1
vote
0 answers

jq command not found when running script inside plist

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 as it should and no complaints about jq. However…
jbrulmans
  • 975
  • 1
  • 11
  • 32
1
vote
1 answer

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: Service cannot load in requested session Bootstrap…
psimanta
  • 46
  • 4
1
vote
1 answer

"brew services start tomcat" is ignoring ~/.zshrc environmental variables

I'm installing java8 and tomcat9 like this: brew install adoptopenjdk/openjdk/adoptopenjdk8 --cask ln -s $(/usr/libexec/java_home -v 1.8) /opt/homebrew/opt/openjdk echo 'export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)' >> ~/.zshrc brew install…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
1
vote
2 answers

Launchctl service failed to initialize

I wrote the following plist: Label
GaiusOctavian
  • 108
  • 1
  • 6
1
vote
1 answer

Mac launchDaemon service is launching my bash script repeatedly

I have been setting up a launch daemon that launch a bash script on demand. However, once I load my launch agent and communicate via socket, then it keep running my bash script every 10 seconds.I've even set KeepAlive flag as false in plist and…
Dass
  • 326
  • 1
  • 11
1
vote
0 answers

OSX launchctl ZSH Shell Script not waiting for external program to complete

I have installed speedtest.net CLI and written a simple ZSH shell script to run the speedtest binary and generate CSV output. Want to run this script every [time period] (initially every hour) and collect speedtest data into a log file for later…
dazzur
  • 11
  • 1
1
vote
0 answers

launchd - pList Launchdaemon not launching script

Previously I have been able to use Launchdaemons on iOS 9.3.3 but now that I am on iOS 11.3.1 the method I have used to automate the running of a script is no longer working on my iPhone and I cannot understand why. I am jailbroken on unc0ver…
Rhys
  • 27
  • 1
  • 1
  • 5
1
vote
0 answers

How to fix launchctl status code 78 for a Python script?

I'm trying to use the PRAW API to host a bot for posting daily Wikipedia threads to /r/Wikipedaily, and I figured I'd use launchd/launchctl to schedule posts to run every 24 hours. The script launches (it's a running launchctl process), but it…
Nathansbud
  • 11
  • 5
1
vote
1 answer

launchctl load -w No such file or directory

I'm trying to set an automatically program for getintraday.py in mac using launchctl. 1. Create run.sh go to getintraday.py directory cd /Users/yindeyong/Desktop/Django_Projects/pythonstock vi run.sh Following is run.sh: #!/bin/sh # record start…
William
  • 3,724
  • 9
  • 43
  • 76
1
vote
1 answer

MySQL LaunchDaemon not running on macOS El Capitan Server

I've installed MySQL via homebrew and these instructions. The service that homebrew installs is a LaunchAgent, which works fine but only runs while the my user is logged in. I want MySQL to be running at all times. I've tried copying…
Nathan Perkins
  • 131
  • 3
  • 7
1
vote
1 answer

Python module can't be imported when triggered by launchctl script in macos

The python program(apple.py) which wanted to be triggered by launchctl script,written under python2.7 in anaconda The launchctl plist script(com.tushare.refreshall.plist) which was used to trigger the python program I try to use a plist script to…
shawn
  • 53
  • 1
  • 5
1
vote
0 answers

Access macOS environment variables from Python

I got a bunch of environment variables set with the launchctl command: launchctl setenv TEST /Users/JohnDoe/Test To get the value back, I can use: launchctl getenv TEST However, I can't access the value of TEST from Python, using os.getenv('TEST')…
filaton
  • 2,257
  • 17
  • 27
1
vote
1 answer

Installing Pow for Rails 4 hangs on MacOS Sierra

I have been trying to install pow (for Rails) on MacOS Sierra, but it gets hung after giving the password asked for root privilegies. $ curl get.pow.cx | sh % Total % Received % Xferd Average Speed Time Time Time Current …
1
vote
2 answers

tftpd not working - MAC OS X El Capitan 10.11.5

I use tftp in a daily basis, as part of my work. So far, so good, since yesterday (Jun 21, 2016) it simply did not worked anymore. I do not know exactly the reasons, because could not find any support neither people discussing this problem (is it…
herrera
  • 117
  • 1
  • 10