diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2016-05-16 06:44:13 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2016-05-16 06:44:13 +0000 |
commit | fbceba49aeb7b83947543e439fd96c4e2fea9fab (patch) | |
tree | 6a90fdc0f43329c826705366950694787702ff83 /databases | |
parent | 7c2a66b45c147914d356c3a6dff4ed906252c99e (diff) | |
download | ports-fbceba49aeb7b83947543e439fd96c4e2fea9fab.tar.gz ports-fbceba49aeb7b83947543e439fd96c4e2fea9fab.zip |
databases/mongodb{32}: allows to change the config location from rc.conf
PR: 198212
Submitted by: Daniel Ylitalo
Approved by: ale (maintainer timeout)
Notes
Notes:
svn path=/head/; revision=415311
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mongodb/files/mongod.in | 5 | ||||
-rw-r--r-- | databases/mongodb32/files/mongod.in | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/databases/mongodb/files/mongod.in b/databases/mongodb/files/mongod.in index bdf24bea76e0..ace3936e0b51 100644 --- a/databases/mongodb/files/mongod.in +++ b/databases/mongodb/files/mongod.in @@ -16,6 +16,8 @@ # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. # Default to "--logpath ${mongod_dbpath}/mongod.log --logappend". +# mongod_config (str): Default to "%%PREFIX%%/etc/mongodb.conf" +# Path to config file # . /etc/rc.subr @@ -31,10 +33,11 @@ load_rc_config $name : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend"} : ${mongod_user="mongodb"} : ${mongod_group="mongodb"} +: ${mongod_config="%%PREFIX%%/etc/mongodb.conf"} pidfile="${mongod_dbpath}/mongod.lock" command=%%PREFIX%%/bin/${name} -command_args="--config %%PREFIX%%/etc/mongodb.conf --dbpath $mongod_dbpath --fork >/dev/null 2>/dev/null" +command_args="--config $mongod_config --dbpath $mongod_dbpath --fork >/dev/null 2>/dev/null" start_precmd="${name}_prestart" mongod_create_dbpath() diff --git a/databases/mongodb32/files/mongod.in b/databases/mongodb32/files/mongod.in index bdf24bea76e0..ace3936e0b51 100644 --- a/databases/mongodb32/files/mongod.in +++ b/databases/mongodb32/files/mongod.in @@ -16,6 +16,8 @@ # Base database directory. # mongod_flags (str): Custom additional arguments to be passed to mongod. # Default to "--logpath ${mongod_dbpath}/mongod.log --logappend". +# mongod_config (str): Default to "%%PREFIX%%/etc/mongodb.conf" +# Path to config file # . /etc/rc.subr @@ -31,10 +33,11 @@ load_rc_config $name : ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend"} : ${mongod_user="mongodb"} : ${mongod_group="mongodb"} +: ${mongod_config="%%PREFIX%%/etc/mongodb.conf"} pidfile="${mongod_dbpath}/mongod.lock" command=%%PREFIX%%/bin/${name} -command_args="--config %%PREFIX%%/etc/mongodb.conf --dbpath $mongod_dbpath --fork >/dev/null 2>/dev/null" +command_args="--config $mongod_config --dbpath $mongod_dbpath --fork >/dev/null 2>/dev/null" start_precmd="${name}_prestart" mongod_create_dbpath() |