forked from p15670423/monkey
18 lines
325 B
Plaintext
18 lines
325 B
Plaintext
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 15
|
|
fi
|
|
end script |