Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MacOS: Manually force a daemon to start

I've created a plist file in the /Library/LaunchDaemon/

The computer on which it runs cannot be restarted (server thing), it's running MacOS Tiger. I expected the following command to do the job, but it states it's not meant to be run directly:

launchd /Library/LaunchDaemon/parallel.plist

How can this be achieved? Thanks!

like image 563
Jem Avatar asked May 10 '12 09:05

Jem


2 Answers

sudo launchctl load /Library/LaunchDaemons/parallel.plist

should cause the daemon to autorun.

See http://www.aandcp.com/launchdaemons-and-mac-os-x-openvpn-as-an-example

like image 92
Jem Avatar answered Oct 18 '22 21:10

Jem


I know this post already has an answer but because this is such an uncommon topic, I thought I'd weigh in as well. The command that worked for me was

sudo launchctl kickstart system/com.example.service

The plist for this daemon would need to be in /Library/LaunchDaemons.

like image 21
tutiplain Avatar answered Oct 18 '22 20:10

tutiplain