source: subversion/applications/utils/tirex/debian/tirex-munin-plugin.prerm @ 29268

Last change on this file since 29268 was 20274, checked in by frederik, 10 years ago

initial commit of tirex - a new tile rendering manager

File size: 574 bytes
Line 
1#! /bin/sh
2
3set -e
4
5if [ -d /etc/munin/plugins ]
6then
7    for i in /usr/share/munin/plugins/tirex*
8    do
9        if [ -f /etc/munin/plugins/`basename $i` ]
10        then
11           # is a file, leave alone
12           :
13        else
14           # does not exist or is a link
15           rm -f /etc/munin/plugins/`basename $i`
16        fi
17    done
18
19    if [ -x /etc/init.d/munin-node ]
20    then
21        if which invoke-rc.d >/dev/null 2>&1; then
22            invoke-rc.d munin-node restart
23        else
24            /etc/init.d/munin-node restart
25        fi
26    fi
27fi
28
29#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.