Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 888217 Details for
Bug 995753
koji-vm,koji-builder,koji-utils: add systemd unit files
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
koji-vm sysvinit → systemd
0002-Add-systemd-unit-file-for-kojivmd.patch (text/plain), 3.42 KB, created by
Zbigniew Jędrzejewski-Szmek
on 2014-04-21 19:33:54 UTC
(
hide
)
Description:
koji-vm sysvinit → systemd
Filename:
MIME Type:
Creator:
Zbigniew Jędrzejewski-Szmek
Created:
2014-04-21 19:33:54 UTC
Size:
3.42 KB
patch
obsolete
>From e5e074310288310d663257a361029ac4d8fe65a6 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> >Date: Mon, 21 Apr 2014 14:45:40 -0400 >Subject: [PATCH 2/3] Add systemd unit file for kojivmd > >--- > koji.spec | 24 ++++++++++++++++++++++++ > vm/Makefile | 18 ++++++++++++------ > vm/kojivmd.service | 14 ++++++++++++++ > 3 files changed, 50 insertions(+), 6 deletions(-) > create mode 100644 vm/kojivmd.service > >diff --git a/koji.spec b/koji.spec >index a0bd397..29adeb1 100644 >--- a/koji.spec >+++ b/koji.spec >@@ -107,10 +107,16 @@ Summary: Koji virtual machine management daemon > Group: Applications/System > License: LGPLv2 > Requires: %{name} = %{version}-%{release} >+%if %{use_systemd} >+Requires(post): systemd >+Requires(preun): systemd >+Requires(postun): systemd >+%else > Requires(post): /sbin/chkconfig > Requires(post): /sbin/service > Requires(preun): /sbin/chkconfig > Requires(preun): /sbin/service >+%endif > Requires: libvirt-python > Requires: libxml2-python > Requires: /usr/bin/virt-clone >@@ -248,11 +254,28 @@ fi > %{_sbindir}/kojivmd > #dir %{_datadir}/kojivmd > %{_datadir}/kojivmd/kojikamid >+%if %{use_systemd} >+%{_unitdir}/kojivmd.service >+%else > %{_initrddir}/kojivmd > %config(noreplace) %{_sysconfdir}/sysconfig/kojivmd >+%endif > %dir %{_sysconfdir}/kojivmd > %config(noreplace) %{_sysconfdir}/kojivmd/kojivmd.conf > >+%if %{use_systemd} >+ >+%post vm >+%systemd_post kojivmd.service >+ >+%preun vm >+%systemd_preun kojivmd.service >+ >+%postun vm >+%systemd_postun kojivmd.service >+ >+%else >+ > %post vm > /sbin/chkconfig --add kojivmd > >@@ -261,6 +284,7 @@ if [ $1 = 0 ]; then > /sbin/service kojivmd stop &> /dev/null > /sbin/chkconfig --del kojivmd > fi >+%endif > > %post utils > /sbin/chkconfig --add kojira >diff --git a/vm/Makefile b/vm/Makefile >index 1dcab17..13e340c 100644 >--- a/vm/Makefile >+++ b/vm/Makefile >@@ -1,6 +1,7 @@ >- > BINFILES = kojivmd > SHAREFILES = kojikamid >+SYSTEMDSYSTEMUNITDIR = $(shell pkg-config systemd --variable=systemdsystemunitdir) >+TYPE = systemd > > _default: > @echo "nothing to make. try make install" >@@ -11,7 +12,7 @@ clean: > kojikamid: kojikamid.py > bash fix_kojikamid.sh >kojikamid > >-install: kojikamid >+_install: kojikamid > @if [ "$(DESTDIR)" = "" ]; then \ > echo " "; \ > echo "ERROR: A destdir is required"; \ >@@ -24,13 +25,18 @@ install: kojikamid > mkdir -p $(DESTDIR)/usr/share/kojivmd > install -p -m 644 $(SHAREFILES) $(DESTDIR)/usr/share/kojivmd > >+ mkdir -p $(DESTDIR)/etc/kojivmd >+ install -p -m 644 kojivmd.conf $(DESTDIR)/etc/kojivmd/kojivmd.conf >+ >+install-systemd: _install >+ mkdir -p $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) >+ install -p -m 644 kojivmd.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) >+ >+install-sysv: _install > mkdir -p $(DESTDIR)/etc/rc.d/init.d > install -p -m 755 kojivmd.init $(DESTDIR)/etc/rc.d/init.d/kojivmd > > mkdir -p $(DESTDIR)/etc/sysconfig > install -p -m 644 kojivmd.sysconfig $(DESTDIR)/etc/sysconfig/kojivmd > >- mkdir -p $(DESTDIR)/etc/kojivmd >- install -p -m 644 kojivmd.conf $(DESTDIR)/etc/kojivmd/kojivmd.conf >- >- >+install: install-$(TYPE) >diff --git a/vm/kojivmd.service b/vm/kojivmd.service >new file mode 100644 >index 0000000..a417fdb >--- /dev/null >+++ b/vm/kojivmd.service >@@ -0,0 +1,14 @@ >+[Unit] >+Description=Koji vm build server >+Documentation=https://fedoraproject.org/wiki/Koji/ServerHowTo >+ >+After=network.target >+ >+[Service] >+ExecStart=/usr/sbin/kojivmd \ >+ --fg \ >+ --force-lock \ >+ --verbose >+ >+[Install] >+WantedBy=multi-user.target >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 995753
:
785270
|
785271
|
785272
|
785279
|
785280
|
785281
|
785282
|
887978
|
888215
|
888216
| 888217