/[gentoo-x86]/net-analyzer/nagios-nsca/files/nsca
Gentoo

Contents of /net-analyzer/nagios-nsca/files/nsca

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Aug 18 00:17:19 2012 UTC (9 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
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)

1 #!/sbin/runscript
2
3 opts="${opts} reload"
4
5 depend() {
6 need net
7 }
8
9 start() {
10 ebegin "Starting nsca"
11 start-stop-daemon --start --quiet --name nsca \
12 --startas /usr/nagios/bin/nsca \
13 -c nagios:nagios \
14 -- -c /etc/nagios/nsca.cfg \
15 --daemon
16 eend $? "Failed to Start nsca"
17 }
18
19 stop() {
20 ebegin "Stopping nsca"
21 start-stop-daemon --stop --quiet -n nsca
22 eend $? "Failed to Stop nsca"
23 }
24
25 reload() {
26 ebegin "Reloading nsca"
27 kill -HUP `pgrep nsca`
28 eend $? "Failed to reload nsca"
29 }
30
31 restart() {
32 ebegin "Restarting nsca"
33 svc_stop
34 svc_start
35 eend $? "Failed to Restart nsca"
36 }

  ViewVC Help
Powered by ViewVC 1.1.13