summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/mwcollect/Manifest26
-rw-r--r--net-analyzer/mwcollect/files/confd14
-rw-r--r--net-analyzer/mwcollect/files/initd16
3 files changed, 22 insertions, 34 deletions
diff --git a/net-analyzer/mwcollect/Manifest b/net-analyzer/mwcollect/Manifest
index 70441d3655d7..c47d5446419a 100644
--- a/net-analyzer/mwcollect/Manifest
+++ b/net-analyzer/mwcollect/Manifest
@@ -1,18 +1,12 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 d6686b70beeb04333a23a1bcf7cedffd metadata.xml 434
+MD5 64e83d1d37bf8dda9a131fe6eb2cfc3a .mwcollect-3.0.0.ebuild.swp 12288
MD5 2f914ba64220a4bd1b5850649c50924b ChangeLog 1191
-MD5 4057526152e96a533f54cdd4b2d8fc11 mwcollect-2.1.2.ebuild 1254
-MD5 ff8c0112b4a425afa749446d3af74091 mwcollect-2.1.1.ebuild 1254
-MD5 41680bc378c00c382d48cbe32ee2abc7 files/confd 957
-MD5 e25a6bca07df41cad22a6901a200651a files/digest-mwcollect-2.1.2 66
+MD5 dd4aab16ffc56b3eecd0fa6e3ea536b3 files/confd 560
MD5 ee61af624456e7fc0ea870d40435fd70 files/digest-mwcollect-2.1.1 66
-MD5 745a427e7a26e2b6c64399aed16d1b5b files/initd 900
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD4DBQFDM+8wFdQwWVoAgN4RAsS6AKCoORtus29xUN+7qtKaUnnDEV+jdACYyBG/
-e4lcbYBAJqTropz6CfFNHg==
-=FB8q
------END PGP SIGNATURE-----
+MD5 e25a6bca07df41cad22a6901a200651a files/digest-mwcollect-2.1.2 66
+MD5 e5858653fce66aec74497f826c24257b files/digest-mwcollect-3.0.0 67
+MD5 1db05efae9034e8595129e4bf2dd285c files/initd 782
+MD5 5d6b56a56d282b0e9919fd25dd1bc421 files/mwcollect-3.0.0-capacity.patch 676
+MD5 d6686b70beeb04333a23a1bcf7cedffd metadata.xml 434
+MD5 ff8c0112b4a425afa749446d3af74091 mwcollect-2.1.1.ebuild 1254
+MD5 4057526152e96a533f54cdd4b2d8fc11 mwcollect-2.1.2.ebuild 1254
+MD5 870cae8376c4266f65c2ef8a45f360d3 mwcollect-3.0.0.ebuild 1566
diff --git a/net-analyzer/mwcollect/files/confd b/net-analyzer/mwcollect/files/confd
index dbff4807c9b8..463621a095ab 100644
--- a/net-analyzer/mwcollect/files/confd
+++ b/net-analyzer/mwcollect/files/confd
@@ -6,17 +6,11 @@
#
# Usage: /usr/sbin/mwcollectd [options]
# Where options can be one of the following:
-# -c <config-file> specify config file (defaults to /etc/mwcollectd.conf)
-# -l <log-file> add log file
-# -C add console logger
-# -L <log-level> specify log level, inital is 3
-# -D detach from console
-# -h display this info
-#
-# Example:
-# /usr/sbin/mwcollectd -L critical -C -L info -l /var/log/mwcollectd.log -c /etc/mwcollectd.conf
+#
+# --console-log [=tagpattern] - set console logging level
+# --chroot=/opt/mwcollect/chroot - setup a chroot
-OPTIONS="-D -c /etc/mwcollect/mwcollectd.conf"
+OPTIONS=""
# example: add log file
# OPTIONS="$OPTIONS -l /var/log/mwcollect.log -L 3"
diff --git a/net-analyzer/mwcollect/files/initd b/net-analyzer/mwcollect/files/initd
index e295a27957df..3a56848936f4 100644
--- a/net-analyzer/mwcollect/files/initd
+++ b/net-analyzer/mwcollect/files/initd
@@ -9,28 +9,28 @@ depend() {
}
checkconfig() {
- if [ ! -e /etc/mwcollect/mwcollectd.conf ] ; then
- eerror "You need to create /etc/mwcollect/mwcollectd.conf first."
- eerror "An example can be found in /etc/mwcollect/mwcollectd.conf.dist"
+ if [ ! -e /etc/mwcollect/mwcollect.conf ] ; then
+ eerror "/etc/mwcollect/mwcollect.conf not found!"
return 1
fi
}
start() {
ebegin "Starting mwcollectd"
- # HACK: making mwcollectd background with --background
- # mwcollectd should have created its pid file
+
checkconfig && \
start-stop-daemon --start --quiet \
- --exec /usr/sbin/mwcollectd -- -p /var/run/mwcollectd.pid ${OPTIONS}
+ --exec /usr/sbin/mwcollectd -- --pid-file=/var/run/mwcollect.pid \
+ --daemon --user=nobody --config=/etc/mwcollect/mwcollect.conf \
+ ${OPTIONS}
eend $?
}
stop() {
ebegin "Stopping mwcollectd"
start-stop-daemon --stop --quiet \
- --pidfile /var/run/mwcollectd.pid \
- --exec /usr/sbin/mwcollectd && rm /var/run/mwcollectd.pid
+ --pidfile /var/run/mwcollect.pid \
+ --exec /usr/sbin/mwcollectd && rm /var/run/mwcollect.pid
eend $?
}