summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-01-28 10:31:24 -0500
committerRichard Kreuter <richard@10gen.com>2010-01-29 16:42:38 -0500
commitc81ca9783f77348c735dad627a7b9be706dceb64 (patch)
tree7266e11182bb48d28cd028a96e48941f51216809 /rpm
parent009242886fcaf115f3142aa1828dd4e1b5058100 (diff)
downloadmongo-c81ca9783f77348c735dad627a7b9be706dceb64.tar.gz
Tweaks to rpm/mongo.spec, create a sysconfig file. MINOR
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongo.spec7
-rw-r--r--rpm/mongod.sysconfig1
2 files changed, 6 insertions, 2 deletions
diff --git a/rpm/mongo.spec b/rpm/mongo.spec
index 108e4d2ecaf..a7c4be8b072 100644
--- a/rpm/mongo.spec
+++ b/rpm/mongo.spec
@@ -56,6 +56,7 @@ cp rpm/init.d-mongod $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
chmod a+x $RPM_BUILD_ROOT/etc/rc.d/init.d/mongod
mkdir -p $RPM_BUILD_ROOT/etc
cp rpm/mongod.conf $RPM_BUILD_ROOT/etc/mongod.conf
+mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp rpm/mongod.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/mongod
mkdir -p $RPM_BUILD_ROOT/var/lib/mongo
mkdir -p $RPM_BUILD_ROOT/var/log
@@ -66,7 +67,7 @@ scons -c
rm -rf $RPM_BUILD_ROOT
%pre server
-#/usr/sbin/useradd -M -o -r -d /var/mongo -s /bin/bash \
+#/usr/sbin/useradd -M -o -r -d /var/lib/mongo -s /bin/bash \
# -c "mongod" mongod > /dev/null 2>&1 || :
%post server
@@ -113,7 +114,7 @@ fi
#%{_mandir}/man1/mongod.1*
%{_mandir}/man1/mongos.1*
/etc/rc.d/init.d/mongod
-#/etc/sysconfig/mongod
+/etc/sysconfig/mongod
#/etc/rc.d/init.d/mongos
%attr(0755,root,root) %dir /var/lib/mongo
%attr(0640,root,root) %config(noreplace) %verify(not md5 size mtime) /var/log/mongo
@@ -127,3 +128,5 @@ fi
* Sat Oct 24 2009 Joe Miklojcik <jmiklojcik@shopwiki.com> -
- Wrote mongo.spec.
+* Thu Jan 28 2010 Richard M Kreuter <richard@10gen.com>
+- Minor fixes.
diff --git a/rpm/mongod.sysconfig b/rpm/mongod.sysconfig
new file mode 100644
index 00000000000..3513c98da82
--- /dev/null
+++ b/rpm/mongod.sysconfig
@@ -0,0 +1 @@
+# TODO: add relevant configuration stuff here. \ No newline at end of file