Opened 17 years ago

Closed 16 years ago

Last modified 14 years ago

#12177 closed enhancement (invalid)

RFE: launchctl .plist files can/should installed w/in the /opt/local tree

Reported by: paulbeard@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc: paulbeard@…, nox@…, jmpp@…
Port:

Description

Rather than put stuff in /opt/local and link to it from /Library, it's possible to install .plist files in /opt/local/LaunchDaemons and call them from /etc/launchd.conf. if the ports are removed or something happens to the MacPorts installation, a couple of lines of text in a file is tidier than crufty dead links all over the place. And it maintains the idea of minimal transgressions outside the /opt sandbox.

launchctl load -w /opt/local/etc/LaunchDaemons/org
.macports.mysql5/org.macports.mysql5.plist
launchctl load -w /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist

Change History (7)

comment:1 Changed 17 years ago by paulbeard@…

Do this help at all?

--- /tmp/Portfile       2007-06-25 20:30:20.000000000 -0700
+++ Portfile    2007-03-02 13:51:15.000000000 -0800
@@ -70,11 +70,6 @@
                ${worksrcpath}/support/envvars-std
 }
 
-post-install {
-       # add commands to launchd.conf
-       echo "# apache2 startup directive added by MacPorts" >> /etc/launchd.conf
-       echo "launchctl load -w /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist" >> /etc/launchd.conf
-
 post-destroot {
        set confDir ${destroot}${prefix}/apache2/conf
        file rename -force ${confDir}/httpd.conf ${confDir}/httpd.conf.sample

comment:2 Changed 17 years ago by nox@…

Milestone: Port Enhancements
Priority: ImportantHigh
Version: 1.4.40

comment:3 Changed 17 years ago by nox@…

Milestone: Port EnhancementsMacPorts base enhancements

comment:4 Changed 17 years ago by nox@…

Cc: paulbeard@… nox@… jmpp@… added

LaunchDaemons plist files are installed in ${prefix}, there is just a symlink put in /Library/LaunchDaemons

comment:5 Changed 17 years ago by jmpp@…

Component: portsbase
Priority: HighNormal

comment:6 Changed 16 years ago by jberry@…

Resolution: invalid
Status: newclosed

The approach we take at present (putting a symlink in /Library/LaunchDaemons), seems cleaner than writing to /etc/launchd.conf.

comment:7 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.