Fixed changelog for hardy
[invirt/packages/xvm-munin-config.git] / debian / xvm-munin-remote-config.init
1 #!/bin/bash
2 ### BEGIN INIT INFO
3 # Provides:          xvm-munin-remote-config
4 # Required-Start:    $local_fs $remote_fs
5 # Required-Stop:     $local_fs $remote_fs
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: XVM Munin config
9 # Description:       
10 ### END INIT INFO
11
12 NAME=xvm-munin-remote-config
13 PARENTPACKAGE=munin-node
14 GEN_FILES=/etc/munin/munin-node.conf.xvm
15
16 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
17
18 . /lib/init/gen-files.sh
19 . /lib/init/std-init.sh
20
21 do_start () {
22     gen_files
23     
24     mako-render /usr/share/xvm-munin-remote-config/loggrep_remctl.mako >/etc/munin/plugin-conf.d/loggrep_remctl
25     
26     for p in "${PARENTPACKAGE[@]}"; do
27         invoke-rc.d "$p" restart
28     done
29 }
30
31 do_reload() {
32     do_start
33 }
34
35 do_stop() {
36     for p in "${PARENTPACKAGE[@]}"; do
37         invoke-rc.d "$p" stop
38     done
39 }
40
41 std_init "$1"