11

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!

Jem
  • 6,226
  • 14
  • 56
  • 74

2 Answers2

13
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

Paolo
  • 15,233
  • 27
  • 70
  • 91
Jem
  • 6,226
  • 14
  • 56
  • 74
1

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.

tutiplain
  • 1,427
  • 4
  • 19
  • 37
  • I can't really remember why I needed this in a fist place (2011?), but tested on Big Sur (2021) and indeed it works! Cheers. – Jem Jun 14 '21 at 07:26
  • Thanks! I actually tested it on Mojave, but good to know it works on Big Sur as well. – tutiplain Jun 14 '21 at 15:14