install -d -m 755 $(DESTDIR)$(sysconfdir)/systemd/system/multi-user.target.wants
ln -f -s $(systemddir)/system/lxcf.service \
$(DESTDIR)$(sysconfdir)/systemd/system/multi-user.target.wants/lxcf.service
+ install -m 644 conf/lxcf-sched.service $(DESTDIR)$(systemddir)/system/lxcf-sched.service
+ ln -f -s $(systemddir)/system/lxcf-sched.service \
+ $(DESTDIR)$(sysconfdir)/systemd/system/multi-user.target.wants/lxcf-sched.service
install -d -m 755 $(DESTDIR)$(localstatedir)/lib/libvirt/network
install -m 644 conf/var_lxcfnet1.xml \
$(DESTDIR)$(localstatedir)/lib/libvirt/network/lxcfnet1.xml
rm -f $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/lxcfnet1.xml
rm -f $(DESTDIR)$(sysconfdir)/libvirt/qemu/networks/autostart/lxcfnet1.xml
rm -f $(DESTDIR)$(systemddir)/system/lxcf.service
+ rm -f $(DESTDIR)$(systemddir)/system/lxcf-sched.service
rm -f $(DESTDIR)$(sysconfdir)/systemd/system/multi-user.target.wants/lxcf.service
rm -f $(DESTDIR)$(localstatedir)/lib/libvirt/network/lxcfnet1.xml
rm -f $(DESTDIR)$(mandir)/man1/lxcf.1.gz
--- /dev/null
+# LXCF - LXC Facility
+# copyright (C) 2014 FUJITSU LIMITED All Rights Reserved
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# This unit gets pulled automatically into multi-user.target by
+# lxcfsched.service
+[Unit]
+Description=lxcf-sched service
+ConditionFileIsExecutable=/usr/lib/lxcf/lxcf-sched
+After=network.target
+
+[Service]
+ExecStart=/usr/lib/lxcf/lxcf-sched
+KillMode=process
+Restart=on-failure
+RestartSec=42s
+SysVStartPriority=99
+
+[Install]
+WantedBy=multi-user.target
+
%config(noreplace) /etc/libvirt/qemu/networks/lxcfnet1.xml
/etc/libvirt/qemu/networks/autostart/lxcfnet1.xml
/usr/lib/systemd/system/lxcf.service
+/usr/lib/systemd/system/lxcf-sched.service
/etc/systemd/system/multi-user.target.wants/lxcf.service
+/etc/systemd/system/multi-user.target.wants/lxcf-sched.service
/var/lib/libvirt/network/lxcfnet1.xml
/var/log/lxcf/lxcf-messages
%config(noreplace) /etc/libvirt/qemu/networks/lxcfnet1.xml
/etc/libvirt/qemu/networks/autostart/lxcfnet1.xml
/usr/lib/systemd/system/lxcf.service
+/usr/lib/systemd/system/lxcf-sched.service
/etc/systemd/system/multi-user.target.wants/lxcf.service
+/etc/systemd/system/multi-user.target.wants/lxcf-sched.service
/var/lib/libvirt/network/lxcfnet1.xml
/var/log/lxcf/lxcf-messages