Opened 4 years ago

Last modified 4 years ago

#60239 new defect

creating startupitem for apache2 — at Version 1

Reported by: sam452 (sam walton) Owned by:
Priority: Low Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: apache2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Thanks for the MacPorts project! I've successfully got my apache 2.4 running on an old PowerPC serving several sites.
But whenever this is a power failure, I've always had to manually start apache. I can see in /Library/LaunchDaemons/ other port start plist files but not apache.
sudo port load apache2 fails at:

:error:load Failed to load apache2: Launchd plist /Library/LaunchDaemons/org.macports.apache2.plist was not found
:debug:load Error code: NONE
:debug:load Backtrace: Launchd plist /Library/LaunchDaemons/org.macports.apache2.plist was not found
:debug:load Backtrace: Launchd plist /Library/LaunchDaemons/org.macports.apache2.plist was not found
:debug:load     while executing
:debug:load "portstartupitem::foreach_startupitem {
:debug:load         if {(![info exists ::portstartupitem::load_only] || $si_name
 in ${::portstartupitem::load_only})

So it would appear that info exists::portstartupitem::load_only exists since it expects it's already instantiated. I thought I could find in your GitHub repo this file, but reading https://guide.macports.org/chunked/reference.startupitems.html suggests this is created when apache2 was installed.

I attempted to run

sudo port startupitem.create

but that failed as expected.

My question is how to instantiate this plist without reinstalling apache2?
thx, sam

Change History (1)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: apache2 added
Type: requestdefect

The apache2 port does install the file /Library/LaunchDaemons/org.macports.apache2.plist, unless you have configured MacPorts not to install such plists.

Note: See TracTickets for help on using tickets.