Launchd is a process management daemon, similar to "init". It is commonly used on Darwin-based systems.
Questions tagged [launchd]
640 questions
0
votes
1 answer
(Evasi0n JB) iOS 6 launchd change in syntax?
Is there any change in the syntax of the launchd (LaunchDaemons) files from iOS 5.x to iOS 6.1?
I tried to install somethingfrom my iOS 5.1 iPhone4s to the iPhone5 (running iOS 6.1 JB with Evasi0n) and it gives me this error (in…

Gik
- 528
- 5
- 18
0
votes
1 answer
OSX, shutting launchd daemon down and network is not available
We have launchd daemon which should be running forever and be started as soon as system is booted, therefore in its plist we say:
KeepAlive
Everything is OK until the system is shutdown. Agent needs to inform the remote server…

DimaA6_ABC
- 578
- 4
- 15
0
votes
2 answers
Watir scripts via launchd
It's possible I can't use launchd for this, I just couldn't find anything saying explicitly NO. So, here's the question...
I'd like to run my Watir scripts 10 minutes past the hour, every hour. This script launches Firefox, performs tests, and…

jonsie_araki
- 221
- 3
- 8
0
votes
1 answer
date formatting in shell script via automator
i need to run a shell script included in an automator app as "run shell script" action wherein i generate a file with this filename:
filename=$(date +%m-%d-%Y-%k-%M)'_test.png'
When i run this line in terminal it works. When i run the automator…

homtg
- 1,999
- 1
- 15
- 20
0
votes
1 answer
Find out the return code of the privileged help run through SMJobSubmit
Is there a way to know the return code or process ID of the process which gets executed when the privileged helper tool is installed as a launchdaemon and launched via SMJobSubmit().
I have an application which to execute some tasks in privileged…

sraok
- 595
- 6
- 23
0
votes
1 answer
SMJobBless and friends
i made an App that was submitted to the Mac AppStore. For some reasons, they refused it, because it was installing a helper tool using the SMJobBless API.
As this helper tool isn't necessary for most of the App's functionality, i have removed it,…

Doodloo
- 869
- 5
- 18
0
votes
1 answer
Tryning to use Rsync to backup directory on Encrypted DMG on an USB external HD : hdutils attach failed
I am trying to do this :
When " BCKUNIVERSITA " partition on external USB HD mounts , LAUNCHD launches " backup.com "
Through backup.com an encrypted DMG ( " riassunti.sparsebundle " ) inside " BCKUNIVERSITA " is mounted . Then with rsync files…

ikar0
- 1
- 1
0
votes
1 answer
How do I secure a per user GUI launchd agent against a non admin user disabling it?
I have a pair of launchd daemons, one of which is a true daemon (runs as root) and one of which is a GUI agent that runs as a per GUI session basis (session type Aqua).
I need to prevent non admin level users from disabling the user level agent…

Redwood
- 66,744
- 41
- 126
- 187
0
votes
1 answer
Calling system("open ") sometimes causes app to be launched as root
I've got an application (A daemon inside /Library/StartupItems to be precise) running as root that occasionally launches another process using system("open /Applications/MyAppName.app"). This works fine except that on certain computers MyAppName…

Redwood
- 66,744
- 41
- 126
- 187
0
votes
1 answer
using iphone to trigger events on a Mac
Is there any sample code/open source code available on how you could trigger events on a Mac with an iOS device ? What I want is for me to say click a button on the iOS app and this triggers some event on the MAC which could be running a daemon…

cocoacoder
- 381
- 8
- 19
0
votes
1 answer
How to compile Apple's securityd package?
I am using OS X 10.7.3 with Xcode 4.3.2. I download and tried to build securityd package from http://opensource.apple.com/tarballs/securityd/securityd-55111.tar.gz.
However, I am getting tons of build errors relating to missing header files. So, I…

webie
- 1,451
- 1
- 10
- 8
-1
votes
0 answers
Status 78 for a Launchd Daemon
I'm fairly new to MAC and the Terminal and I want to send out a script on a larger scale to MAC-computers that basically:
Creates a script that disables the awdl0 interface
Create a plist that should run whenever a user restarts their computer or…

Lancelot
- 1
-1
votes
0 answers
Session Type of the launcd Agent in MacOS
Is there a way to programatically identify in our program if our executable is launched with a particular session Type of an Agent in MacOS.
This link has the details of the session types in Launchd Agent.

Vipul Gupta
- 239
- 5
-1
votes
1 answer
How to run system service before login in macOS 12.5.1?
I put the plist file in /Library/LaunchDaemons directory, chown to root and run sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist to enable and load it.
zyl@imac:~% ls -l …

user2256177
- 69
- 5
-1
votes
2 answers
How to tell from a launch daemon if macOS is currently restarting?
I have a launch daemon (written in C++) that runs on macOS. Is there a way to tell if the operating system is currently restarting?
(Or the moment after the user hit Apple Logo -> Restart and the OS is winding down.)

c00000fd
- 20,994
- 29
- 177
- 400