X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lxc-sliceimage.spec;h=1bd6ff071d93fb27dedab1c13c1f9050004ba678;hb=edf7cae57e72c28ecb0df203a3a5514ab6d78e3e;hp=0001d7265173f45f498191ee0626de38d6290389;hpb=2a061d4cdf91279d1a72c1c07cad94da519b744e;p=sliceimage.git diff --git a/lxc-sliceimage.spec b/lxc-sliceimage.spec index 0001d72..1bd6ff0 100644 --- a/lxc-sliceimage.spec +++ b/lxc-sliceimage.spec @@ -1,6 +1,6 @@ %define name lxc-sliceimage %define version 5.1 -%define taglevel 7 +%define taglevel 10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} @@ -43,24 +43,24 @@ rm -rf $RPM_BUILD_ROOT %files %{_bindir}/lxc-sliceimage -/lib/systemd/system/lxc-sliceimage.service +/usr/lib/systemd/system/lxc-sliceimage.service %{_sysconfdir}/cron.d/lxc-sliceimage %{_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 +