Changeset 14572 for trunk/base


Ignore:
Timestamp:
Oct 12, 2005, 4:32:14 AM (15 years ago)
Author:
jberry
Message:

Generate informational messages telling the user how to enable
the systemstarter or launchd generated startup item.

File:
1 edited

Legend:

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

    r14542 r14572  
    22# portstartupitem.tcl
    33#
    4 # $Id: portstartupitem.tcl,v 1.22 2005/10/11 04:38:36 jberry Exp $
     4# $Id: portstartupitem.tcl,v 1.23 2005/10/12 04:32:14 jberry Exp $
    55#
    66# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
     
    370370        puts ${para} "\}"
    371371        close ${para}
     372       
     373        # Emit some information for the user
     374        ui_msg "###########################################################"
     375        ui_msg "# A startup item has been generated that will aid in"
     376        ui_msg "# starting ${portname} with SystemStarter. It is disabled"
     377        ui_msg "# by default. Add the following line to /etc/hostconfig"
     378        ui_msg "# or ${prefix}/etc/rc.conf to start it at startup:"
     379        ui_msg "#"
     380        ui_msg "#       ${uppername}:=-YES-"
     381        ui_msg "###########################################################"
    372382}
    373383
     
    572582        file mkdir "${destroot}/Library/${daemondest}"
    573583        system "cd ${destroot}/Library/${daemondest} && ln -sf ${itemdir}/${plistname}"
     584       
     585        # Emit some information for the user
     586        ui_msg "###########################################################"
     587        ui_msg "# A startup item has been generated that will aid in"
     588        ui_msg "# starting ${portname} with launchd. It is disabled"
     589        ui_msg "# by default. Execute the following command to start it,"
     590        ui_msg "# and to cause it to launch at startup:"
     591        ui_msg "#"
     592        ui_msg "# sudo launchctl load -w /Library/${daemondest}/${plistname}"
     593        ui_msg "###########################################################"
    574594}
    575595
Note: See TracChangeset for help on using the changeset viewer.