postinst is in xymon 4.3.25-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | #! /bin/sh
# postinst script for xymon
#
# see: dh_installdeb(1)
. /usr/share/debconf/confmodule
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
# Workaround for http://bugs.debian.org/560317 in case debconf is too old like on Squeeze
export DPKG_MAINTSCRIPT_PACKAGE=${DPKG_MAINTSCRIPT_PACKAGE:-xymon}
export DPKG_MAINTSCRIPT_NAME=${DPKG_MAINTSCRIPT_NAME:-postinst}
case "$1" in
configure)
# Do the debconf stuff
if [ "$2" ] && dpkg --compare-versions "$2" lt "4.3.7"; then
db_get hobbit-client/automatic-xymon-migration
if [ "$RET" = "true" ]; then
MIGRATE="true"
echo "Migrating xymon files from hobbit ..."
fi
fi
db_stop
# Setup permissions for the newly created "xymon" user to write
# data where he needs to.
# And for the Apache-run CGI's to generate reports.
# Create or migrate directories
[ "$MIGRATE" ] && test -d /var/run/hobbit -a ! -d /var/run/xymon && mv -v /var/run/hobbit /var/run/xymon || true
test -d /var/run/xymon || mkdir /var/run/xymon
chown xymon:xymon /var/run/xymon
[ "$MIGRATE" ] && test -d /var/log/hobbit -a ! -d /var/log/xymon && mv -v /var/log/hobbit /var/log/xymon || true
test -d /var/log/xymon || mkdir /var/log/xymon
chown xymon:adm /var/log/xymon ; chmod 2755 /var/log/xymon
cd /var/lib/xymon; chown xymon:xymon . acks data disabled hist histlogs hostdata logs rrd tmp www
cd /var/lib/xymon/www; chown xymon:xymon html notes wml rep snap; chgrp www-data rep snap; chmod g+w rep snap
cd /etc/xymon; chgrp www-data critical.cfg critical.cfg.bak; chmod g+w critical.cfg critical.cfg.bak
# Maybe TODO before Jessie release: prename vs rename vs file-rename
# See https://bugs.debian.org/735134 for details
if [ "$MIGRATE" ] && [ -x /usr/bin/prename ]; then
find /var/lib/xymon '(' -name '*bbgen*' -o \
-name '*bbtest*' -o \
-name '*bbproxy*' -o \
-name '*hobbitd*' -o \
-name '*hobbit2*' -o \
-name hobbit.rrd ')' \
-exec prename -v 's/bb(gen|proxy)/xymon$1/;s/bbtest/xymonnet/;s/hobbit(d|2|\.rrd)/xymon$1/' '{}' + ;
fi
if [ "$MIGRATE" ] && test -e /etc/hobbit/bb-hosts ; then
mv -v /etc/hobbit/bb-hosts /etc/xymon/hosts.cfg
fi
if ! test -e /etc/xymon/hosts.cfg ; then
if test -e /etc/default/xymon-client ; then
. /etc/default/xymon-client || true
fi
cat > /etc/xymon/hosts.cfg <<EOF
#
# Master configuration file for Xymon
#
# This file defines several things:
#
# 1) By adding hosts to this file, you define hosts that are monitored by Xymon
# 2) By adding "page", "subpage", "group" definitions, you define the layout
# of the Xymon webpages, and how hosts are divided among the various webpages
# that Xymon generates.
# 3) Several other definitions can be done for each host, see the hosts.cfg(5)
# man-page.
#
# You need to define at least the Xymon server itself here.
#0.0.0.0 .default. # NOPROPRED:+apt,+libs
#group Servers
127.0.0.1 $CLIENTHOSTNAME # bbd http://$CLIENTHOSTNAME/
#group Dialup
#0.0.0.0 notebook.bla.net # noconn dialup
EOF
fi
[ "$MIGRATE" ] && test -e /etc/hobbit/hobbitpasswd -a ! -e /etc/xymon/xymonpasswd && mv -v /etc/hobbit/hobbitpasswd /etc/xymon/xymonpasswd || true
test -e /etc/xymon/xymonpasswd || touch /etc/xymon/xymonpasswd
[ "$MIGRATE" ] && test -e /etc/hobbit/hobbitgroups -a ! -e /etc/xymon/xymongroups && mv -v /etc/hobbit/hobbitgroups /etc/xymon/xymongroups || true
test -e /etc/xymon/xymongroups || touch /etc/xymon/xymongroups
if [ "$2" ] && dpkg --compare-versions "$2" lt 4.3.0~beta2.dfsg-8~ ; then
if [ -x /usr/bin/rrdtool ] ; then
echo "Fixing RRD parameters in clock.rrd files found ..."
for i in `find /var/lib/hobbit/rrd/ /var/lib/xymon/rrd/ -name clock.rrd` ; do
rrdtool tune $i -i la:U
done
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_apache2
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in xymon ; do
apache2_invoke enconf $conf || exit $?
done
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/xymon" ]; then
update-rc.d xymon defaults 98 02 >/dev/null
fi
if [ -x "/etc/init.d/xymon" ] || [ -e "/etc/init/xymon.conf" ]; then
invoke-rc.d xymon start || exit $?
fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/apache2/conf.d/hobbit /etc/apache2/conf-available/xymon.conf 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/init.d/hobbit /etc/init.d/xymon 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/client-local.cfg /etc/xymon/client-local.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/columndoc.csv /etc/xymon/columndoc.csv 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitserver.cfg /etc/xymon/xymonserver.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/acknowledge_header /etc/xymon/web/acknowledge_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/acknowledge_form /etc/xymon/web/acknowledge_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/columndoc_header /etc/xymon/web/columndoc_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/confreport_back /etc/xymon/web/confreport_back 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/confreport_footer /etc/xymon/web/confreport_footer 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/confreport_front /etc/xymon/web/confreport_front 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/confreport_header /etc/xymon/web/confreport_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/event_form /etc/xymon/web/event_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/event_header /etc/xymon/web/event_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/findhost_form /etc/xymon/web/findhost_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/findhost_header /etc/xymon/web/findhost_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/ghosts_header /etc/xymon/web/ghosts_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/graphs_header /etc/xymon/web/graphs_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hist_header /etc/xymon/web/hist_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/histlog_header /etc/xymon/web/histlog_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hostgraphs_form /etc/xymon/web/hostgraphs_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hostgraphs_header /etc/xymon/web/hostgraphs_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hostlist_form /etc/xymon/web/hostlist_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hostlist_header /etc/xymon/web/hostlist_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hostsvc_header /etc/xymon/web/hostsvc_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/info_header /etc/xymon/web/info_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/maint_form /etc/xymon/web/maint_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/maint_header /etc/xymon/web/maint_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/maintact_header /etc/xymon/web/maintact_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/notify_form /etc/xymon/web/notify_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/notify_footer /etc/xymon/web/notify_footer 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/notify_header /etc/xymon/web/notify_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/perfdata_form /etc/xymon/web/perfdata_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/perfdata_header /etc/xymon/web/perfdata_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/replog_header /etc/xymon/web/replog_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/report_form /etc/xymon/web/report_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/report_form_daily /etc/xymon/web/report_form_daily 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/report_form_monthly /etc/xymon/web/report_form_monthly 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/report_form_weekly /etc/xymon/web/report_form_weekly 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/report_header /etc/xymon/web/report_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/snapshot_form /etc/xymon/web/snapshot_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/snapshot_header /etc/xymon/web/snapshot_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/topchanges_form /etc/xymon/web/topchanges_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/topchanges_header /etc/xymon/web/topchanges_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/trends_form /etc/xymon/web/trends_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/useradm_form /etc/xymon/web/useradm_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/useradm_header /etc/xymon/web/useradm_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/zoom.js /etc/xymon/web/zoom.js 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbit-alerts.cfg /etc/xymon/alerts.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbit-nkview.cfg /etc/xymon/critical.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbit-nkview.cfg.bak /etc/xymon/critical.cfg.bak 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitcgi.cfg /etc/xymon/cgioptions.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitgraph.cfg /etc/xymon/graphs.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/bbcombotest.cfg /etc/xymon/combo.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hobbitnk_footer /etc/xymon/web/critical_footer 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/hobbitnk_header /etc/xymon/web/critical_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/menu.cfg /etc/xymon/xymonmenu.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbitlaunch.cfg /etc/xymon/tasks.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/bb-services /etc/xymon/protocols.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/hobbit-clients.cfg /etc/xymon/analysis.cfg 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bb_footer /etc/xymon/web/stdnormal_footer 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bb_header /etc/xymon/web/stdnormal_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bb2_header /etc/xymon/web/stdnongreen_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bbnk_header /etc/xymon/web/stdcritical_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bbsnap_header /etc/xymon/web/snapnormal_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bbsnap2_header /etc/xymon/web/snapnongreen_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bbsnapnk_header /etc/xymon/web/snapcritical_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/bbrep_header /etc/xymon/web/repnormal_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/nkack_form /etc/xymon/web/critack_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/nkedit_form /etc/xymon/web/critedit_form 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/hobbit/web/nkedit_header /etc/xymon/web/critedit_header 4.3.7-1~~ xymon -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/apache2/conf.d/xymon /etc/apache2/conf-available/xymon.conf 4.3.17-2~~ xymon -- "$@"
# End automatically added section
case "$1" in
configure)
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
# Enable CGI support
apache2_invoke enmod cgi
# Needed by the rewrite rules to migrate from old hobbit based URLs
apache2_invoke enmod rewrite
# Finally enable the xymon web interface
apache2_invoke enconf xymon
elif test -e /etc/init.d/apache2 ; then
invoke-rc.d apache2 reload || :
fi
;;
esac
exit 0
|