mongodb: add a runit service
This commit is contained in:
parent
f2abe9f74c
commit
34964ebd8d
3 changed files with 5 additions and 0 deletions
2
srcpkgs/mongodb/files/mongodb/run
Executable file
2
srcpkgs/mongodb/files/mongodb/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /usr/bin/mongod --quiet --config /etc/mongodb/mongodb.conf
|
1
srcpkgs/mongodb/files/mongodb/supervise
Symbolic link
1
srcpkgs/mongodb/files/mongodb/supervise
Symbolic link
|
@ -0,0 +1 @@
|
|||
/run/runit/supervise.mongodb
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue