#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 15 years ago by jmroot (Joshua Root)
Type: | request → enhancement |
---|
comment:2 Changed 15 years ago by dreamcat4@…
comment:4 Changed 7 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 7 years ago by jmroot (Joshua Root)
Milestone: | → MacPorts Future |
---|
comment:6 Changed 7 years ago by neverpanic (Clemens Lang)
Milestone: | MacPorts Future → MacPorts 2.5.0 |
---|
comment:7 Changed 7 years ago by neverpanic (Clemens Lang)
Milestone: | MacPorts 2.5.0 → MacPorts Future |
---|
comment:8 Changed 7 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future → MacPorts 2.5.0 |
---|
Please also see Ticket #18174, which suggests an OnDemand startupitems setting.