Bug 183394

Summary: [patch] [databases/mongodb] Allow config to be specified in rc.conf
Product: Ports & Packages Reporter: Daniel Ylitalo <daniel>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Daniel Ylitalo 2013-10-28 12:10:01 UTC
Right now the config path is hardcoded in the rc.d script, which will reset when upgrading.

Attached patch reads the config path from rc.conf if specified allowing easier upgrade.

This has been done for mysql/openvpn/nrpe/snmpd amongst others

Fix: Allow config path to be set in /etc/rc.conf, see attached patch.

Patch attached with submission follows:
How-To-Repeat: Change config path in rc.d/mongod and upgrade the software, the config path will be reset
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-28 12:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-10-28 15:53:12 UTC
State Changed
From-To: open->feedback

Why do you need to change the config location? The rc script doesn't allow multiple instances.
Comment 3 daniel 2013-10-28 16:51:28 UTC
Hi!

Because im using a deploysystem which stores all configs in a svn repo
Comment 4 Alex Dupre freebsd_committer freebsd_triage 2013-10-29 15:21:13 UTC
State Changed
From-To: feedback->closed

Then simply create a symlink from etc/mongod.conf to your config file.