monkey/monkey_island/linux/ubuntu/monkey-mongo.conf

18 lines
324 B
Plaintext
Raw Normal View History

2015-12-07 22:11:31 +08:00
description "Monkey Island Mongo Service"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit unlimited
script
chdir /var/monkey_island/
exec /var/monkey_island/bin/mongodb/bin/mongod --dbpath db
end script
post-stop script
if [ -n $UPSTART_EVENTS ]; then
exec sleep 3
2015-12-07 22:11:31 +08:00
fi
end script