MySQL problem with LaunchDaemon

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

MySQL problem with LaunchDaemon

Postby spookybathtub » 05. February 2014 23:24

I'm trying to start apache and MySQL at boot-time, so I created /Library/LaunchDaemons/org.apache.start.plist with this code. Apache starts okay, but MySQL does not.
launchctl shows an exit code of 0, which means success. On some blogger's advice, I also tried splitting it into two separate daemons, running "xampp startapache" and "xampp startmysql", but that didn't work either. Both had exit codes of zero. Once I'm logged into the system, I can do "xampp stop" followed by "xampp start", and then it works. What's wrong with this LaunchDaemon?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
  <key>Label</key>
    <string>org.xampp.start</string>
  <key>ProgramArguments</key>
    <array>
      <string>/Applications/XAMPP/xamppfiles/xampp</string>
      <string>start</string>
  </array>
  <key>RunAtLoad</key>
    <true/>
 </dict>
</plist>
spookybathtub
 
Posts: 19
Joined: 02. June 2013 04:19
XAMPP version: 5.6.33
Operating System: 10.13.4

Re: MySQL problem with LaunchDaemon

Postby DnvrSysEngr » 05. February 2014 23:42

I wanted to do the exact same thing. I found the solutions at this page: http://f6design.com/journal/2012/03/12/launching-xampp-at-osx-startup/

-Scott
DnvrSysEngr
 
Posts: 7
Joined: 05. February 2014 23:38
Operating System: Mac OSX 10.9.2


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 82 guests