From: | "Tom Wijsman (tomwij)" <tomwij@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-misc/monitorix/files: monitorix-3.5.1.init monitorix-3.0.0.init |
Date: | Fri, 23 May 2014 15:58:07 |
Message-Id: | 20140523155803.CD0582004E@flycatcher.gentoo.org |
1 | tomwij 14/05/23 15:58:03 |
2 | |
3 | Added: monitorix-3.5.1.init |
4 | Removed: monitorix-3.0.0.init |
5 | Log: |
6 | Version bump to 3.5.1, removed old, added systemd unit support. Fixed security bug #493434 (CVE-2013-7071); reported by Ago, based on a contribution by Wojciech Myrda (vojcek). |
7 | |
8 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
9 | |
10 | Revision Changes Path |
11 | 1.1 www-misc/monitorix/files/monitorix-3.5.1.init |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/monitorix/files/monitorix-3.5.1.init?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/monitorix/files/monitorix-3.5.1.init?rev=1.1&content-type=text/plain |
15 | |
16 | Index: monitorix-3.5.1.init |
17 | =================================================================== |
18 | #! /sbin/runscript |
19 | |
20 | depend() { |
21 | need net |
22 | } |
23 | |
24 | start() { |
25 | ebegin "Starting monitorix" |
26 | start-stop-daemon --start --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid -- -c /etc/monitorix/monitorix.conf -p /var/run/monitorix.pid |
27 | local i=0 |
28 | local timeout=5 |
29 | while [ ! -f /var/run/monitorix.pid ] && [ $i -le $timeout ]; do |
30 | sleep 1 |
31 | i=$(($i + 1)) |
32 | done |
33 | [ $timeout -gt $i ] |
34 | eend $? |
35 | } |
36 | |
37 | stop() { |
38 | ebegin "Stopping monitorix" |
39 | start-stop-daemon --stop --signal QUIT --stop --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid |
40 | eend $? |
41 | } |