mongodb: add a runit service

This commit is contained in:
Enno Boland 2014-10-15 11:57:01 +02:00
parent f2abe9f74c
commit 34964ebd8d
3 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/mongod --quiet --config /etc/mongodb/mongodb.conf

View file

@ -0,0 +1 @@
/run/runit/supervise.mongodb

View file

@ -60,4 +60,6 @@ do_install() {
vinstall "${FILESDIR}/mongodb.conf" 644 "etc/mongodb"
[ "$build_option_systemd" ] && \
vinstall "${FILESDIR}/mongodb.service" 644 "usr/lib/systemd/system"
vsv mongodb
}