net-proxy/shadowsocks-rust: add 1.20.2, drop 1.20.1
[gentoo-zh.git] / dev-db / mongodb / files / mongodb.initd-r3
blob9235772b3910765a23a85375b4bbee3165d7b00e
1 #!/sbin/openrc-run
2 # Copyright 1999-2019 Gentoo Authors
3 # Distributed under the terms of the GNU General Public License v2
5 : ${config_file:="/etc/${RC_SVCNAME}.conf"}
6 : ${user:=mongodb}
7 : ${group:=mongodb}
9 command="/usr/bin/mongod"
10 command_args="--config ${config_file}"
11 command_background="true"
12 pidfile="/run/${RC_SVCNAME}.pid"
13 command_user="${user}:${group}"
14 required_files="${config_file}"
15 retry="SIGTERM/30"
17 depend() {
18         use net