#!/sbin/openrc-run # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ logfile=/var/log/mongodb/mms-agent.log run_dir=${run_dir:-/run/mongodb} command="/usr/bin/python2 agent.py &>${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-agent }