Opened 14 months ago
Last modified 11 months ago
#67955 closed enhancement
startupitem: enhancements: logfile should also log to stderr; add user/group capabilities — at Initial Version
Reported by: | mascguy (Christopher Nielsen) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.9.0 |
Component: | base | Version: | 2.8.1 |
Keywords: | startupitem | Cc: | neverpanic (Clemens Lang) |
Port: |
Description
A few suggested enhancements, which would further improve startupitem
functionality:
startupitem.logfile
: This option only enables stdout logging, viaStandardOutPath
. It should also log stderr, viaStandardErrorPath
.- Presently, there is no built-in capability to support a custom user and/or group, requiring each port to implement this via various means. (Generally either via
su
, or a custom plist file.) But ideally, a port should be able to enable such functionality via optional properties. (Say,startupitem.run_user
andstartupitem.run_group
, or something similar.)
Some ideas/assumptions about the latter:
- Specifying a custom user and/or group, would not be supported with a custom plist file.
- Depending on macOS version support, this could potentially be accomplished at the
launchd
level, via propertiesGroupName
andUserName
. Alternatively, it could be done by wrapping commands viasu
. (Or whichever method is most appropriate, to support the full swath of macOS releases.)
Note: See
TracTickets for help on using
tickets.