Opened 17 years ago

Closed 15 months ago

Last modified 15 months ago

#13807 closed enhancement (fixed)

support for launchd.plist items (e.g. UserName) in portfiles

Reported by: jyrkiwahlstedt Owned by: ci42
Priority: Normal Milestone: MacPorts 2.7.0
Component: base Version: 1.6.0
Keywords: Cc: febeling@…, e40 (e40), herbygillot (Herby Gillot), mascguy (Christopher Nielsen)
Port: couchdb

Description

Currently there are only few plist items that can be defined in portfiles. I specifically have need for UserName for CouchDB (there is no way to specify the user in ini file!), but I expect other may have need for others, too.

Change History (12)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Type: defectenhancement

comment:2 Changed 16 years ago by febeling@…

Port: couchdb added

The couchdb install contains a launchd plist already, is there anything wrong with it? The mp startup item does not work for me, though. So this works:

sudo launchctl load -w /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist

and this doesn't:

sudo launchctl load -w /Library/LaunchDaemons/org.macports.CouchDB.plist

The port install UI message advertises the latter one, which is a bit unfortunate since it's broken.

comment:3 Changed 16 years ago by febeling@…

Cc: febeling@… added

Cc Me!

comment:4 Changed 9 years ago by ci42

Owner: changed from macports-tickets@… to ciserlohn@…

comment:5 Changed 6 years ago by e40 (e40)

Cc: e40 added

comment:6 Changed 4 years ago by herbygillot (Herby Gillot)

In b493d5337a0c0d83998d6672ce60be20427c49d7/macports-base (master):

Add Portfile options: startupitem.user & startupitem.group
Ports can now use these to tell launchd which user and group to run the
daemon process as.

See: #13807

comment:7 in reply to:  6 Changed 16 months ago by mascguy (Christopher Nielsen)

Cc: herbygillot added

Replying to herbygillot:

In b493d5337a0c0d83998d6672ce60be20427c49d7/macports-base (master):

Add Portfile options: startupitem.user & startupitem.group
Ports can now use these to tell launchd which user and group to run the
daemon process as.

See: #13807

While this was a great addition, it was never documented anywhere (apart from the release notes). Which undermines the usefulness of the functionality, as many folks have no idea that it even exists...

comment:8 Changed 16 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:9 Changed 15 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: newclosed

User and Group functionality introduced in MacPorts 2.7.0, released on 2021-05-19. Closing as fixed.

comment:10 Changed 15 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.7.0

Please set a milestone when closing base tickets that are fixed in a specific release. The ticket description mentions wanting more plist keys than just user and group, but since they are unspecified, I agree there's probably nothing else actionable here.

comment:11 in reply to:  10 Changed 15 months ago by mascguy (Christopher Nielsen)

Replying to jmroot:

Please set a milestone when closing base tickets that are fixed in a specific release.

Great point, thanks for the heads-up Josh!

comment:12 Changed 15 months ago by mascguy (Christopher Nielsen)

PR created, to document options startupitem.user/startupitem.group in the manpage for portfile:

PR 294 - manpages: portfile: add info for startupitem.user/startupitem.group

Note: See TracTickets for help on using tickets.