From: | "Matt Thode (prometheanfire)" <prometheanfire@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/icinga2/files: icinga2.initd |
Date: | Sun, 03 May 2015 05:25:16 |
Message-Id: | 20150503052507.EF7199CB@oystercatcher.gentoo.org |
1 | prometheanfire 15/05/03 05:25:06 |
2 | |
3 | Modified: icinga2.initd |
4 | Log: |
5 | fixing reload in init script bug 548302 |
6 | |
7 | (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
8 | |
9 | Revision Changes Path |
10 | 1.8 net-analyzer/icinga2/files/icinga2.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/files/icinga2.initd?rev=1.8&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/files/icinga2.initd?rev=1.8&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/files/icinga2.initd?r1=1.7&r2=1.8 |
15 | |
16 | Index: icinga2.initd |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/files/icinga2.initd,v |
19 | retrieving revision 1.7 |
20 | retrieving revision 1.8 |
21 | diff -u -r1.7 -r1.8 |
22 | --- icinga2.initd 13 Mar 2015 21:09:51 -0000 1.7 |
23 | +++ icinga2.initd 3 May 2015 05:25:06 -0000 1.8 |
24 | @@ -68,12 +68,14 @@ |
25 | } |
26 | |
27 | reload() { |
28 | - ebegin "Checking icinga2 configuration" |
29 | - "$DAEMON" daemon --validate >/dev/null 2>&1 |
30 | - if [ $? -ne 0 ]; then |
31 | - eerror "Icinga2 detected configuration errors, run '$DAEMON daemon --validate' for details" |
32 | - return 1 |
33 | - fi |
34 | + checkconfig || return 1 |
35 | + |
36 | ebegin "Reloading icinga2" |
37 | start-stop-daemon --signal HUP --pidfile "$ICINGA2_PID_FILE" |
38 | + |
39 | + local retval=$? |
40 | + if [ $retval -ne 0 ]; then |
41 | + ewarn "Error reloading icinga2." |
42 | + fi |
43 | + eend $retval |
44 | } |