~ubuntu-branches/ubuntu/karmic/nagios-nrpe/karmic

« back to all changes in this revision

Viewing changes to init-script.freebsd.in

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2004-05-15 12:02:35 UTC
  • Revision ID: james.westby@ubuntu.com-20040515120235-52bbrpj39ss7wlvu
Tags: upstream-2.0
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Start/stop the nrpe daemon.
 
3
#
 
4
# Contributed by Andrew Ryder 06-22-02
 
5
# Slight mods by Ethan Galstad 07-09-02
 
6
 
 
7
NrpeBin=@bindir@/nrpe
 
8
NrpeCfg=@sysconfdir@/nrpe.cfg
 
9
 
 
10
case "$1" in
 
11
start)
 
12
        $NrpeBin -c $NrpeCfg -d
 
13
        echo -n ' nrpe'
 
14
        ;;
 
15
stop)
 
16
                killall -TERM nrpe
 
17
                echo -n ' nrpe'
 
18
        ;;
 
19
restart)
 
20
                killall -HUP nrpe
 
21
                echo 'nrpe restarted'
 
22
        ;;
 
23
*)
 
24
        echo "Usage: ${0##*/}: { start | stop | restart }" 2>&1
 
25
        exit 65
 
26
        ;;
 
27
esac
 
28