Sophie

Sophie

distrib > PLD > th > x86_64 > by-pkgid > ab780ec208cb4248e88c17ddaee2e10e > scriptlet

collectd-nut-5.9.2-8.x86_64.rpm

POSTIN

/bin/sh
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/collectd ] && . /etc/sysconfig/collectd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/collectd ]; then
/sbin/service collectd restart 1>&2 || :;
else
echo 'Run "/sbin/service collectd start" to start collectd service.'
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/collectd ]; then
echo 'Run "/sbin/service collectd restart" to restart collectd service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };

POSTUN

/bin/sh
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/collectd ] && . /etc/sysconfig/collectd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/collectd ]; then
/sbin/service collectd restart 1>&2 || :;
else
echo 'Run "/sbin/service collectd start" to start collectd service.'
fi
fi
else
if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
if [ -f /var/lock/subsys/collectd ]; then
echo 'Run "/sbin/service collectd restart" to restart collectd service.'
fi
else	NORESTART=1	# for %%systemd_post if called after
fi
fi };