MacOS: Manually force a daemon to start
Asked Answered
R

2

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!

Rame answered 10/5, 2012 at 9:43 Comment(0)
R
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

Rame answered 10/5, 2012 at 10:24 Comment(1)
You might find this talk interesting: www.youtube.com/watch?v=mLwn_TbBntICariecaries
J
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.

Jackhammer answered 12/6, 2021 at 21:3 Comment(2)
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.Rame
Thanks! I actually tested it on Mojave, but good to know it works on Big Sur as well.Jackhammer

© 2022 - 2024 — McMap. All rights reserved.