Changeset 71486


Ignore:
Timestamp:
Sep 15, 2010, 1:40:00 AM (10 years ago)
Author:
jmr@…
Message:

use KeepAlive instead of OnDemand in launchd plists when available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portstartupitem.tcl

    r70974 r71486  
    391391
    392392proc portstartupitem::startupitem_create_darwin_launchd {args} {
    393     global UI_PREFIX prefix destroot destroot.keepdirs name os.platform
     393    global UI_PREFIX prefix destroot destroot.keepdirs name macosx_deployment_target
    394394    global startupitem.name startupitem.uniquename startupitem.plist startupitem.location
    395395    global startupitem.init startupitem.start startupitem.stop startupitem.restart startupitem.executable
     
    578578    puts ${plist} "<key>Debug</key><false/>"
    579579    puts ${plist} "<key>Disabled</key><true/>"
    580     puts ${plist} "<key>OnDemand</key><false/>"
     580    if {$macosx_deployment_target != "10.4"} {
     581        puts ${plist} "<key>KeepAlive</key><true/>"
     582    } else {
     583        puts ${plist} "<key>OnDemand</key><false/>"
     584    }
    581585   
    582586    if { [llength ${startupitem.logfile}] } {
Note: See TracChangeset for help on using the changeset viewer.