Changeset 14482 for trunk/base
- Timestamp:
- Oct 8, 2005, 7:21:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portstartupitem.tcl
r14481 r14482 2 2 # portstartupitem.tcl 3 3 # 4 # $Id: portstartupitem.tcl,v 1.1 6 2005/10/08 19:01:54jberry Exp $4 # $Id: portstartupitem.tcl,v 1.17 2005/10/08 19:21:02 jberry Exp $ 5 5 # 6 6 # Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>, … … 117 117 118 118 proc startupitem_create_darwin_systemstarter {args} { 119 global prefix destroot destroot.keepdirs portname os.platform119 global UI_PREFIX prefix destroot destroot.keepdirs portname os.platform 120 120 global startupitem.name startupitem.requires startupitem.init 121 121 global startupitem.start startupitem.stop startupitem.restart startupitem.executable … … 371 371 372 372 proc startupitem_create_darwin_launchd {args} { 373 global prefix destroot destroot.keepdirs portname os.platform373 global UI_PREFIX prefix destroot destroot.keepdirs portname os.platform 374 374 global startupitem.name startupitem.requires startupitem.init 375 375 global startupitem.start startupitem.stop startupitem.restart startupitem.executable … … 388 388 389 389 file mkdir ${destroot}${itemdir} 390 file attributes ${destroot}${itemdir} -owner root -group wheel 390 391 391 392 if { [llength ${startupitem.executable}] && … … 425 426 # Create the wrapper script 426 427 set item [open "${destroot}${wrapper}" w 0755] 428 file attributes "${destroot}${wrapper}" -owner root -group wheel 427 429 428 430 puts ${item} "#!/bin/sh" … … 510 512 } 511 513 512 if { ${pidfileArgCnt} !=2 } {514 if { ${pidfileArgCnt} > 2 } { 513 515 ui_error "$UI_PREFIX [msgcat::mc "Invalid parameter count to startupitem.pidfile: 2 expected, %d found" ${pidfileArgCnt}]" 514 516 }
Note: See TracChangeset
for help on using the changeset viewer.