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.
29 lines
497 B
29 lines
497 B
#!/sbin/openrc-run
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the Apache License, Version 2.0
|
|
|
|
mcollectived="/usr/sbin/mcollectived"
|
|
pidfile="/var/run/mcollectived"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting mcollectived"
|
|
${mcollectived} --pid=${pidfile} --config="/etc/mcollective/server.cfg"
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping mcollectived"
|
|
kill `cat ${pidfile}`
|
|
eend $?
|
|
}
|
|
|
|
restart() {
|
|
svc_stop
|
|
sleep 2
|
|
svc_start
|
|
}
|