Skip to content

Commit 5cf582d

Browse files
committed
Merge branch 'v1.2' of github.com:mongodb/mongo into v1.2
2 parents 4a7c73f + ee38815 commit 5cf582d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

debian/mongodb.upstart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ pre-start script
55
mkdir -p /var/log/mongodb/
66
end script
77

8-
start on runlevel [345]
8+
start on runlevel [2345]
9+
stop on runlevel [06]
10+
11+
exec start-stop-daemon --start --quiet --chuid mongodb --exec /usr/bin/mongod -- --config /etc/mongodb.conf
912

10-
exec su -c "/usr/bin/mongod --config /etc/mongodb.conf" -s "/bin/sh" mongodb

debian/postinst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ case "$1" in
2929

3030
# create db -- note: this should agree with dbpath in mongodb.conf
3131
mkdir -p /var/lib/mongodb
32-
chown mongodb:mongodb /var/lib/mongodb
32+
chown -R mongodb:mongodb /var/lib/mongodb
3333

3434
# create logdir -- note: this should agree with logpath in mongodb.conf
3535
mkdir -p /var/log/mongodb
36-
chown mongodb:mongodb /var/log/mongodb
36+
chown -R mongodb:mongodb /var/log/mongodb
3737
;;
3838

3939
abort-upgrade|abort-remove|abort-deconfigure)

debian/rules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ clean:
3535
dh_testroot
3636
rm -f build-stamp configure-stamp
3737

38-
scons -c
38+
# FIXME: scons freaks out at the presence of target files
39+
# under debian/mongodb.
40+
#scons -c
41+
rm -rf $(CURDIR)/debian/mongodb
3942
rm -f config.log
4043
rm -f mongo
4144
rm -f mongod

0 commit comments

Comments
 (0)