[MacPorts] #60239: creating startupitem for apache2

MacPorts noreply at macports.org
Wed Mar 25 13:34:26 UTC 2020


#60239: creating startupitem for apache2
---------------------+--------------------
 Reporter:  sam452   |      Owner:  (none)
     Type:  request  |     Status:  new
 Priority:  Low      |  Milestone:
Component:  ports    |    Version:  2.6.2
 Keywords:           |       Port:
---------------------+--------------------
 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

-- 
Ticket URL: <https://trac.macports.org/ticket/60239>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list