On Oct 10, 2007, at 4:37 PM, Michel LE LAY wrote:

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,


from man launchctl

SUBCOMMANDS
     load [-wF] paths ...
Load the specified configuration files or directories of config-
              uration files.

-w Remove the disabled key and write the configuration
                       files back out to disk.
and there is much other info there......

goodluck

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to