+%post
+/sbin/ldconfig
+/sbin/chkconfig --add lxc
+/sbin/chkconfig --add lxc-net
+/sbin/chkconfig --add lxc_macvlan
+%systemd_post lxc.service lxc-net.service
+
+%preun
+if [ "$1" = "0" ]; then
+ %service lxc stop
+ /sbin/chkconfig --del lxc
+ %service lxc-net stop
+ /sbin/chkconfig --del lxc-net
+ %service lxc_macvlan stop
+ /sbin/chkconfig --del lxc_macvlan
+fi
+%systemd_preun lxc.service lxc-net.service
+
+%postun
+/sbin/ldconfig
+%systemd_reload