You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
720 B
26 lines
720 B
#!/sbin/runscript
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/mms-agent/files/mms-monitoring-agent.initd,v 1.1 2015/03/17 13:42:16 ultrabug Exp $
|
|
|
|
logfile=/var/log/mongodb/mms-monitoring-agent.log
|
|
run_dir=${run_dir:-/run/mongodb}
|
|
|
|
command="/usr/bin/python2 mongodb-mms-monitoring-agent &>${logfile}"
|
|
command_background="true"
|
|
|
|
pidfile=${run_dir}/${SVCNAME}.pid
|
|
user=${user:-mongodb}
|
|
group=${group:-mongodb}
|
|
start_stop_daemon_args="--user ${user} --group ${group}"
|
|
|
|
depend() {
|
|
need net
|
|
use syslog
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
|
|
cd /opt/mms-monitoring-agent
|
|
}
|