Package xymon-client: Скрипты

Post install

1
2
3
4
5
6
7
8
9
/usr/sbin/post_service xymon-client

HOSTNAME="`uname -n`"
/usr/bin/perl -p -e "s/^# MACHINEDOTS=\"localhost\"$/MACHINEDOTS=\"${HOSTNAME}\"/g;" -i /etc/sysconfig/xymon-client


# XXX: Future use, when working with systemd unit files >.<
## Convert file 'include' lines to file 'source' lines for systemd compat
#  sed -e "s/^include /source /" -i /etc/xymon-client/xymonclient.cfg*
Post uninstall

###################################################################
#######################################################################
Pre install

1
2
3
4
getent passwd xymon >/dev/null && \
	usermod -d "/usr/share/xymon-client" -c "xymon Monitor (client)" xymon 2>/dev/null || :

###################################################################
Pre uninstall

/usr/sbin/preun_service xymon-client