diff options
Diffstat (limited to 'net-analyzer/metasploit/files/msfweb.initd')
-rw-r--r-- | net-analyzer/metasploit/files/msfweb.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-analyzer/metasploit/files/msfweb.initd b/net-analyzer/metasploit/files/msfweb.initd new file mode 100644 index 00000000000..0805d583dc7 --- /dev/null +++ b/net-analyzer/metasploit/files/msfweb.initd @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() { + ebegin "Starting msfweb" + start-stop-daemon --start --quiet --background --exec /usr/bin/msfweb \ + --pidfile ${PIDFILE} --make-pidfile -- ${MSF_OPTS} + eend $? +} + +stop() { + ebegin "Stopping msfweb" + start-stop-daemon --stop --quiet --pidfile ${PIDFILE} + rm -f ${PIDFILE} + eend $? +} |