From edf7cae57e72c28ecb0df203a3a5514ab6d78e3e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 15 Jan 2016 16:23:25 +0100 Subject: [PATCH] simplified specfile lxc-sliceimage was not restarted apparently upon installation not sure this will fix the problem but in the worse case there is a daily cronjob in place.. --- lxc-sliceimage.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lxc-sliceimage.spec b/lxc-sliceimage.spec index 09cc313..1bd6ff0 100644 --- a/lxc-sliceimage.spec +++ b/lxc-sliceimage.spec @@ -48,19 +48,19 @@ rm -rf $RPM_BUILD_ROOT %{_sysconfdir}/logrotate.d/lxc-sliceimage /vservers/.lvref +# observed on a f23 node on jan-15-2016 +# it feels like this call to restarting the service does not trigger +# or not reliably +# the daily crontab job should save the day though +# also just in case, we don't anymore disable the service when uninstalling either %post systemctl enable lxc-sliceimage.service if [ "$PL_BOOTCD" != "1" ] ; then systemctl restart lxc-sliceimage.service fi -%preun -# 0 = erase, 1 = upgrade -if [ $1 -eq 0 ] ; then - systemctl disable lxc-sliceimage.service -fi - # Randomize daily run time M=$((60 * $RANDOM / 32768)) H=$((24 * $RANDOM / 32768)) sed -i -e "s/@M@/$M/" -e "s/@H@/$H/" %{_sysconfdir}/cron.d/lxc-sliceimage + -- 2.43.0