* [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-nsca/files: nsca.init nsca.cfg nsca send_nsca.cfg
@ 2012-08-18 0:17 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2012-08-18 0:17 UTC (permalink / raw
To: gentoo-commits
flameeyes 12/08/18 00:17:19
Added: nsca.init
Removed: nsca.cfg nsca send_nsca.cfg
Log:
Remove old; revbump and cleanup ebuild: use EAPI 4, use econf, set up the nagios user correctly, instead of depending on nagios-plugins for that; make tcpd dependency non-automagic; fix install path of send_ncsa; don't chown files that are world-executable; init script is cleaned up, uses the new runscript syntax and is safe to run on LXC hosts as well.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Revision Changes Path
1.1 net-analyzer/nagios-nsca/files/nsca.init
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init?rev=1.1&content-type=text/plain
Index: nsca.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/files/nsca.init,v 1.1 2012/08/18 00:17:19 flameeyes Exp $
get_pidfile() {
sed -n -e 's:^[ \t]*pid_file=\([^#]\+\).*:\1:p' \
/etc/nagios/nsca.cfg
}
extra_started_commands="reload"
command=/usr/libexec/${SVCNAME}
command_args="-c /etc/nagios/nsca.cfg --daemon"
pidfile=$(get_pidfile)
start_stop_daemon_args="--user nagios:nagios"
depend() {
need net
}
reload() {
ebegin "Reloading nsca"
kill -HUP `cat $(get_pidfile)`
eend $? "Failed to reload nsca"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-18 3:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-18 0:17 [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-nsca/files: nsca.init nsca.cfg nsca send_nsca.cfg Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox