blob: f82090ca0fba594821514321fe1fd1a27b591981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# migrate and clean configs
echo >>$PCP_LOG_DIR/install.log
date >>$PCP_LOG_DIR/install.log
for base in pmcd pmie pmlogger pmwebd pmproxy
do
_clean_configs -v 2>>$PCP_LOG_DIR/install.log $PCP_SYSCONF_DIR/$base /var/lib/pcp/config/$base /etc/$base /etc/pcp/$base /etc/sysconfig/$base
done
for svc in pmproxy pmwebd pmie pmlogger pmcd pcp
do
[ -f $PCP_RC_DIR/$svc ] && $PCP_RC_DIR/$svc stop
if which rc-update >/dev/null 2>&1
then
if rc-update show | grep " $svc " >/dev/null 2>&1
then
# service is installed ...
#
rc-update delete $svc
fi
fi
done
for conf in \
$PCP_PMCDCONF_PATH $PCP_PMCDOPTIONS_PATH $PCP_PMCDRCLOCAL_PATH \
$PCP_PMIECONTROL_PATH $PCP_PMLOGGERCONTROL_PATH \
$PCP_PMPROXYOPTIONS_PATH $PCP_PMWEBDOPTIONS_PATH
do
if [ -f "$conf" ]
then
rm -f "$conf.pre"
mv "$conf" "$conf.pre"
fi
done
exit 0
|