mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
SERVER-9985 Adjust pre-script mkdir commands in upstart config
This commit is contained in:
parent
849a83f364
commit
e5da7115af
15
debian/mongod.upstart
vendored
15
debian/mongod.upstart
vendored
@ -13,15 +13,12 @@ limit nproc 32000 32000
|
||||
kill timeout 300 # wait 300s between SIGTERM and SIGKILL.
|
||||
|
||||
pre-start script
|
||||
if ! [ -d /var/lib/mongodb/ ]; then
|
||||
mkdir -p /var/lib/mongodb/
|
||||
chown -R mongodb:mongodb /var/lib/mongodb/
|
||||
fi
|
||||
|
||||
if ! [ -d /var/log/mongodb/ ]; then
|
||||
mkdir -p /var/log/mongodb/
|
||||
chown -R mongodb:mongodb /var/log/mongodb/
|
||||
fi
|
||||
if [ ! -d /var/lib/mongod ]; then
|
||||
mkdir -p /var/lib/mongodb && chown mongodb:mongodb /var/lib/mongodb
|
||||
fi
|
||||
if [ ! -d /var/log/mongod ]; then
|
||||
mkdir -p /var/log/mongodb && chown mongodb:mongodb /var/log/mongodb
|
||||
fi
|
||||
end script
|
||||
|
||||
start on runlevel [2345]
|
||||
|
Loading…
Reference in New Issue
Block a user