* [gentoo-commits] gentoo-x86 commit in www-misc/monitorix/files: monitorix-3.0.0.init
@ 2013-03-13 18:21 Tom Wijsman (tomwij)
0 siblings, 0 replies; only message in thread
From: Tom Wijsman (tomwij) @ 2013-03-13 18:21 UTC (permalink / raw
To: gentoo-commits
tomwij 13/03/13 18:21:24
Added: monitorix-3.0.0.init
Log:
New ebuild. Thanks to mren for reporting, thanks to Matthew Connelly for contributing an ebuild and an init script. Fixes bug #281087 and bug #417009.
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Revision Changes Path
1.1 www-misc/monitorix/files/monitorix-3.0.0.init
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/monitorix/files/monitorix-3.0.0.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/monitorix/files/monitorix-3.0.0.init?rev=1.1&content-type=text/plain
Index: monitorix-3.0.0.init
===================================================================
#! /sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting monitorix"
start-stop-daemon --start --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid -- -c /etc/monitorix.conf -p /var/run/monitorix.pid
local i=0
local timeout=5
while [ ! -f /var/run/monitorix.pid ] && [ $i -le $timeout ]; do
sleep 1
i=$(($i + 1))
done
[ $timeout -gt $i ]
eend $?
}
stop() {
ebegin "Stopping monitorix"
start-stop-daemon --stop --signal QUIT --stop --exec /usr/sbin/monitorix --pidfile /var/run/monitorix.pid
eend $?
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-13 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 18:21 [gentoo-commits] gentoo-x86 commit in www-misc/monitorix/files: monitorix-3.0.0.init Tom Wijsman (tomwij)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox