Add systemd unit for the scheduler

This commit is contained in:
Matt Prahl
2016-12-06 14:07:30 -05:00
parent 392a53d88b
commit edb0271d36
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=Scheduler for the Module Build Service
After=network.target
Documentation=https://pagure.io/fm-orchestrator
[Service]
ExecStart=/usr/bin/mbs-daemon
Type=simple
User=fedmsg
Group=fedmsg
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@@ -1,6 +1,6 @@
Name: module-build-service
Version: 1.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: The Module Build Service for Modularity
Group: Development/Tools
@@ -12,6 +12,7 @@ BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: systemd
Requires: fedmsg
Requires: git
@@ -66,6 +67,8 @@ tasks:
%install
%py2_install
%{__install} -pm644 conf/mbs-scheduler.service \
%{buildroot}%{_unitdir}/mbs-scheduler.service
%files
@@ -87,5 +90,8 @@ tasks:
%changelog
* Mon Dec 6 2016 Matt Prahl <mprahl@redhat.com> 1.0.0-2
- Adds systemd unit.
* Fri Nov 25 2016 Filip Valder <fvalder@redhat.com> 1.0.0-1
- Let's get this party started.