pentoo-overlay/app-eselect/eselect-metasploit/files/msfrpcd.initd
2020-09-10 14:58:47 -04:00

22 lines
477 B
Text

#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
VERSION=
PIDFILE=/var/run/msfrpcd${VERSION}.pid
start() {
ebegin "Starting msfrpcd"
start-stop-daemon --start --quiet --background \
--exec /usr/bin/msfrpcd \
--pidfile ${PIDFILE} \
--make-pidfile -- -f ${MSF_OPTS}
eend $?
}
stop() {
ebegin "Stopping msfrpcd"
start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE}
eend $?
}