commit 6ee26970e80b2b9705e970ec3547ca3c97e8e52f Author: Radek Novacek rnovacek@redhat.com Date: Tue Nov 27 09:40:50 2012 +0100
Add .service file for systemd
Makefile | 4 ++-- virt-who.service | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) --- diff --git a/Makefile b/Makefile index 6dee540..f7d066a 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,10 @@ check: pyflakes *.py
install: - install -d $(DESTDIR)/usr/share/$(name)/ $(DESTDIR)/usr/bin $(DESTDIR)/etc/rc.d/init.d $(DESTDIR)/etc/sysconfig $(DESTDIR)/usr/share/man/man8/ + install -d $(DESTDIR)/usr/share/$(name)/ $(DESTDIR)/usr/bin $(DESTDIR)/usr/lib/systemd/system $(DESTDIR)/etc/sysconfig $(DESTDIR)/usr/share/man/man8/ install -pm 0644 *.py $(DESTDIR)/usr/share/$(name)/ install virt-who $(DESTDIR)/usr/bin/ - install virt-who-initscript $(DESTDIR)/etc/rc.d/init.d/virt-who + install -pm 0644 virt-who.service $(DESTDIR)/usr/lib/systemd/system/ install -pm 0644 virt-who.conf $(DESTDIR)/etc/sysconfig/virt-who gzip -c virt-who.8 > virt-who.8.gz install -pm 0644 virt-who.8.gz $(DESTDIR)/usr/share/man/man8/ diff --git a/virt-who.service b/virt-who.service new file mode 100644 index 0000000..74982c5 --- /dev/null +++ b/virt-who.service @@ -0,0 +1,13 @@ +[Unit] +Description=Daemon for reporting virtual guest IDs to subscription-manager +After=syslog.target libvirtd.service network.target + +[Service] +Type=forking +PIDFile=/var/run/virt-who.pid +ExecStart=/usr/bin/virt-who +EnvironmentFile=-/etc/sysconfig/virt-who + +[Install] +WantedBy=multi-user.target +
virt-who-devel@lists.fedorahosted.org