Macports & launchctl - plist disabled by default prevents apache2
form starting
Michel LE LAY
neric27 at wanadoo.fr
Wed Oct 10 13:37:29 PDT 2007
Hello,
I'm using macports 1.520
As a follow-up to thread
MySQL5, OS X 10.4.10, startups, etc.
http://lists.macosforge.org/pipermail/macports-users/2007-September/005756.html
I had the same problem with the upgraded version of apache2 : the symlinks are correct
$ ls -l /Library/LaunchDaemons/org.macports.apache2.plist
lrwxr-xr-x 1 root wheel 76 8 oct 12:14 /Library/LaunchDaemons/org.macports.apache2.plist -> /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
$ ls -l /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
-rw-r--r-- 2 root wheel 992 10 oct 22:22 /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
And launchctl load kept saying that there was "nothing to load" when I typed
sudo launchctl load /Library/LaunchDaemons/org.macports.apache2.plist.
It seems that the default generated org.macports.apache2.plist has these keys at the end :
<key>Disabled</key><true/>
<key>OnDemand</key><false/>
<key>RunAtLoad</key><false/>
So, when launchctl parses the file, it sees Disabled==true and doesn't load.
Removing Disabled and OnDemand and turning RunAtLoad to true solves the problem.
Please, could you inspect the code generating startup-items ?
Cheers,
More information about the macports-users
mailing list