public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-analyzer/openvas-scanner/files: openvassd.init
@ 2014-10-01 13:03 Justin Lecher (jlec)
  0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2014-10-01 13:03 UTC (permalink / raw
  To: gentoo-commits

jlec        14/10/01 13:03:13

  Modified:             openvassd.init
  Log:
  net-analyzer/openvas-scanner: Add initial cache generation to init-script
  
  (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

Revision  Changes    Path
1.4                  net-analyzer/openvas-scanner/files/openvassd.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?r1=1.3&r2=1.4

Index: openvassd.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- openvassd.init	30 Sep 2014 16:03:10 -0000	1.3
+++ openvassd.init	1 Oct 2014 13:03:13 -0000	1.4
@@ -7,6 +7,7 @@
 command="/usr/sbin/openvassd"
 command_args="${SCANNER_LISTEN} ${SCANNER_PORT} ${SCANNER_SRCIP} ${SCANNER_EXTRA_ARGS}"
 pidfile="/run/openvassd.pid"
+extra_stopped_commands="create_cache"
 
 depend() {
 	after bootmisc
@@ -16,3 +17,10 @@
 start_pre() {
 	checkpath --directory --mode 0775 --quiet /var/cache/openvas
 }
+
+create_cache() {
+	checkpath --directory --mode 0775 --quiet /var/cache/openvas
+	ebegin "Generating initial Cache"
+	/usr/sbin/openvassd --foreground --only-cache
+	eend $?
+}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-01 13:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 13:03 [gentoo-commits] gentoo-x86 commit in net-analyzer/openvas-scanner/files: openvassd.init Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox