mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-29 23:54:58 +08:00
systemd scriptlets.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user