Skip to content
Permalink
Browse files

Generate informational messages telling the user how to enable

the systemstarter or launchd generated startup item.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14572 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 12, 2005
1 parent d4b68c6 commit 1f1cb5a25d5fd5959f7bff1699ac5a11a1ce0441
Showing with 21 additions and 1 deletion.
  1. +21 −1 src/port1.0/portstartupitem.tcl
@@ -1,7 +1,7 @@
# et:ts=4
# portstartupitem.tcl
#
# $Id: portstartupitem.tcl,v 1.22 2005/10/11 04:38:36 jberry Exp $
# $Id: portstartupitem.tcl,v 1.23 2005/10/12 04:32:14 jberry Exp $
#
# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
# Copyright (c) 2005 Robert Shaw <rshaw@opendarwin.org>,
@@ -369,6 +369,16 @@ RunService "$1"
puts ${para} "\tOrderPreference\t= \"None\";"
puts ${para} "\}"
close ${para}

# Emit some information for the user
ui_msg "###########################################################"
ui_msg "# A startup item has been generated that will aid in"
ui_msg "# starting ${portname} with SystemStarter. It is disabled"
ui_msg "# by default. Add the following line to /etc/hostconfig"
ui_msg "# or ${prefix}/etc/rc.conf to start it at startup:"
ui_msg "#"
ui_msg "# ${uppername}:=-YES-"
ui_msg "###########################################################"
}

proc startupitem_create_darwin_launchd {args} {
@@ -571,6 +581,16 @@ proc startupitem_create_darwin_launchd {args} {
# Make a symlink to the plist file
file mkdir "${destroot}/Library/${daemondest}"
system "cd ${destroot}/Library/${daemondest} && ln -sf ${itemdir}/${plistname}"

# Emit some information for the user
ui_msg "###########################################################"
ui_msg "# A startup item has been generated that will aid in"
ui_msg "# starting ${portname} with launchd. It is disabled"
ui_msg "# by default. Execute the following command to start it,"
ui_msg "# and to cause it to launch at startup:"
ui_msg "#"
ui_msg "# sudo launchctl load -w /Library/${daemondest}/${plistname}"
ui_msg "###########################################################"
}

proc startupitem_create {args} {

0 comments on commit 1f1cb5a

Please sign in to comment.
You can’t perform that action at this time.