

The -w flag removes the disabled flag from the plist, and updates the plist itself. Here’s a 1 Gig speedtest via GPON to my Mac Mini Server. If you are opening this server up to the Internet, you should really consider another method as FTP is not secure and could open up you Mac to hacking. To load speakdate, issue the following command: launchctl load -w /Users/marczak/Library/LaunchAgents/ ist The load verb instructs launchctl to tell launchd to add the plist to its list of jobs. Special thanks to Alvin Alexander for the tips to get this working! To stop the daemon from loading, do the following. Since mine is running, it also shows the PID.

Once the file is created in the /Library/LaunchDaemons folder, we can add to the launchctl list (use sudo, so the daemon is run as root). OS X uses the /Library/LaunchDaemons files to start daemons as the root user.Ĭreate a plist file with an appropriate name, I used Several basic setup tasks on OS X Server - especially those related to maintaining backups - can be made easier via launchd, OS X's replacement for cron. This particular Mini is running OS X 10.9.5 Mavericks.Īssuming you have installed the LAMP package and Ookla server and licenses, we will proceed to add the daemon to OS X. My goal was to run this headless, so I wanted to be able to plug it in and fire it up without having to log in and start the daemon manually.Īfter much research, I found the way to do it, and will share the code I used. Everything was working well, but the server would not start automatically upon boot. plist) via launchd, a unified, open source service management framework for starting, stopping and. Restart the machine in recovery mode (cmd-R) on startup.
#Mac os x server cron plist load unload how to#
How to disable unnecessary services on Mac OS X based desktop / server / laptop. I set up a new Ookla server on my Mac Mini. Interfaces with launchd to load, unload daemons/agents and generally control launchd.
