summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-07-08 09:09:41 +0000
committerPeter Volkov <pva@gentoo.org>2009-07-08 09:09:41 +0000
commit013b20d0fa123a08dd669d834da05d057fedd2a3 (patch)
treece8fd2cf5d760ce6127fad11a914d05a33a6a6fa /net-analyzer/metasploit/files
parentUse pidfile in initscript. Per bug #276271. (diff)
downloadgentoo-2-013b20d0fa123a08dd669d834da05d057fedd2a3.tar.gz
gentoo-2-013b20d0fa123a08dd669d834da05d057fedd2a3.tar.bz2
gentoo-2-013b20d0fa123a08dd669d834da05d057fedd2a3.zip
Version bump, bug #247787, thank H D Moore for report and useful ideas.
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/metasploit/files')
-rw-r--r--net-analyzer/metasploit/files/msfweb3.2.confd10
-rw-r--r--net-analyzer/metasploit/files/msfweb3.2.initd20
2 files changed, 30 insertions, 0 deletions
diff --git a/net-analyzer/metasploit/files/msfweb3.2.confd b/net-analyzer/metasploit/files/msfweb3.2.confd
new file mode 100644
index 000000000000..b0cf87e6dfaf
--- /dev/null
+++ b/net-analyzer/metasploit/files/msfweb3.2.confd
@@ -0,0 +1,10 @@
+# Config file for /etc/init.d/metasploit
+
+# Bind to the following IP instead of the loopback address
+IPADDR=127.0.0.1
+
+# Bind to the following TCP port instead of default 55555
+PORT=55555
+
+# All options
+MSF_OPTS="-a $IPADDR -p $PORT"
diff --git a/net-analyzer/metasploit/files/msfweb3.2.initd b/net-analyzer/metasploit/files/msfweb3.2.initd
new file mode 100644
index 000000000000..0618169b8a01
--- /dev/null
+++ b/net-analyzer/metasploit/files/msfweb3.2.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/files/msfweb3.2.initd,v 1.1 2009/07/08 09:09:41 pva Exp $
+
+PIDFILE=/var/run/msfweb3.2.pid
+
+start() {
+ ebegin "Starting msfweb3.2"
+ start-stop-daemon --start --quiet --background --startas msfweb3.2 --exec /usr/lib/metasploit3.2/msfweb \
+ --pidfile ${PIDFILE} --make-pidfile -- ${MSF_OPTS}
+ eend $?
+ einfo "Note: msfweb3.2 is started but needs some before it serves clients."
+}
+
+stop() {
+ ebegin "Stopping msfweb"
+ start-stop-daemon --stop --quiet -s 9 --pidfile ${PIDFILE}
+ eend $?
+}