File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ pre-start script
55 mkdir -p /var/log/mongodb/
66end 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
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments