Opened 14 years ago

Closed 6 years ago

Last modified 6 years ago

#22471 closed enhancement (fixed)

Debugging options for startupitems (launchd / daemondo)

Reported by: dreamcat4@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.5.0
Component: base Version: 1.8.1
Keywords: Cc: nerdling (Jeremy Lavergne)
Port:

Description

Hi, http://trac.macports.org/browser/trunk/base/src/port1.0/portstartupitem.tcl

It would be really great to allow improved debugging options for launchd / daemondo startupitems. Default setting are debug=false and verbosity=1. However usually the amount of information provided by those is inadequate.

Optional debugging parameter may be used whilst testing new startupiitems. Then removed / disabled for the final official Portfile.

We are currently missing these valuable settings:

1. startupitem.debug yes

to set: <key>Debug</key><true/>

This is the general launchd debugging variable. It says everything about what launchd is doing! Generally we only want to switch it on for the startupitem we are debugging.

2. startupitem.verbosity 2

to set:

<string>--verbosity=2</string>

This is a daemondo argument string, and tells everything that the daemondo program is doing. Daemondo is *much* more helpful with this argument switched on.

These may be easily templated into the startupitems.tcl file with just a couple of lines tlc. But most of all it would be particularly good to document these debug setting in the official documentation. Please see ticket #22449 for the startupitems docs for that.

Change History (8)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Type: requestenhancement

comment:2 Changed 14 years ago by dreamcat4@…

Please also see Ticket #18174, which suggests an OnDemand startupitems setting.

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:4 Changed 6 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

In fd19a71f8e1cfc378283433dc803ba39852287bf/macports-base:

add startupitem options for additional logging

Fixes: #22471

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:6 Changed 6 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts FutureMacPorts 2.5.0

comment:7 Changed 6 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts 2.5.0MacPorts Future

comment:8 Changed 6 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.5.0
Note: See TracTickets for help on using tickets.