Opened 4 years ago

Last modified 4 years ago

#60239 new defect

creating startupitem for apache2 — at Initial Version

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

Description

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.mac ports.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 (0)

Note: See TracTickets for help on using tickets.