From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/openvas-scanner/files: openvassd.init |
Date: | Wed, 01 Oct 2014 13:03:18 |
Message-Id: | 20141001130313.7FC416ABC@oystercatcher.gentoo.org |
1 | jlec 14/10/01 13:03:13 |
2 | |
3 | Modified: openvassd.init |
4 | Log: |
5 | net-analyzer/openvas-scanner: Add initial cache generation to init-script |
6 | |
7 | (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
8 | |
9 | Revision Changes Path |
10 | 1.4 net-analyzer/openvas-scanner/files/openvassd.init |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.4&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?rev=1.4&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init?r1=1.3&r2=1.4 |
15 | |
16 | Index: openvassd.init |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/files/openvassd.init,v |
19 | retrieving revision 1.3 |
20 | retrieving revision 1.4 |
21 | diff -u -r1.3 -r1.4 |
22 | --- openvassd.init 30 Sep 2014 16:03:10 -0000 1.3 |
23 | +++ openvassd.init 1 Oct 2014 13:03:13 -0000 1.4 |
24 | @@ -7,6 +7,7 @@ |
25 | command="/usr/sbin/openvassd" |
26 | command_args="${SCANNER_LISTEN} ${SCANNER_PORT} ${SCANNER_SRCIP} ${SCANNER_EXTRA_ARGS}" |
27 | pidfile="/run/openvassd.pid" |
28 | +extra_stopped_commands="create_cache" |
29 | |
30 | depend() { |
31 | after bootmisc |
32 | @@ -16,3 +17,10 @@ |
33 | start_pre() { |
34 | checkpath --directory --mode 0775 --quiet /var/cache/openvas |
35 | } |
36 | + |
37 | +create_cache() { |
38 | + checkpath --directory --mode 0775 --quiet /var/cache/openvas |
39 | + ebegin "Generating initial Cache" |
40 | + /usr/sbin/openvassd --foreground --only-cache |
41 | + eend $? |
42 | +} |