systemd scriptlets.

This commit is contained in:
Ralph Bean
2016-12-14 12:50:27 -05:00
parent 95f0d8384f
commit d2395b7011

View File

@@ -12,7 +12,9 @@ BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: systemd
%{?systemd_requires}
Requires: systemd
Requires: fedmsg
@@ -61,11 +63,9 @@ tasks:
%prep
%setup -q
%build
%py2_build
%install
%py2_install
@@ -73,6 +73,15 @@ mkdir -p %{buildroot}%{_unitdir}/
%{__install} -pm644 conf/mbs-scheduler.service \
%{buildroot}%{_unitdir}/mbs-scheduler.service
%post
%systemd_post mbs-scheduler.service
%preun
%systemd_preun mbs-scheduler.service
%postun
%systemd_postun_with_restart mbs-scheduler.service
%files
%doc README.rst
%license LICENSE