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.
gentoo-overlay/net-analyzer/metasploit/files/msfrpcd-4.2-initd

23 lines
636 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/files/msfrpcd-4.2-initd,v 1.1 2012/02/28 08:09:31 patrick Exp $
VERSION=4.2
PIDFILE=/var/run/msfrpcd${VERSION}.pid
start() {
ebegin "Starting msfrpcd${VERSION}"
start-stop-daemon --start --quiet --background \
--exec /usr/lib/metasploit${VERSION}/msfrpcd \
--pidfile ${PIDFILE} \
--make-pidfile -- -f ${MSF_OPTS}
eend $?
}
stop() {
ebegin "Stopping msfrpcd${VERSION}"
start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE}
eend $?
}