Skip to content

Commit

Permalink
Merge pull request #79 from brianhlin/systemctl-daemon-reload
Browse files Browse the repository at this point in the history
Add systemctl daemon-reload to %post sections
  • Loading branch information
matyasselmeci authored Nov 4, 2019
2 parents 02aae81 + fca2c64 commit 57b1ec7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpm/xcache.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Obsoletes: stashcache-daemon < 1.0.0
%{summary}

%post
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post xcache-reporter.service xcache-reporter.timer xrootd-renew-proxy.service xrootd-renew-proxy.timer
%preun
%systemd_preun xcache-reporter.service xcache-reporter.timer xrootd-renew-proxy.service xrootd-renew-proxy.timer
Expand All @@ -54,6 +55,7 @@ Obsoletes: stashcache-origin-server < 1.0.0
%{summary}

%post -n stash-origin
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post [email protected] [email protected]
%preun -n stash-origin
%systemd_preun [email protected] [email protected]
Expand All @@ -77,6 +79,7 @@ Obsoletes: stashcache-cache-server-auth < 1.0.0
%{summary}

%post -n stash-cache
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post [email protected] stash-cache-authfile.service stash-cache-authfile.timer [email protected]
%preun -n stash-cache
%systemd_preun [email protected] stash-cache-authfile.service stash-cache-authfile.timer [email protected]
Expand All @@ -95,6 +98,7 @@ Requires: xrootd-rucioN2N-for-Xcache
%{summary}

%post -n atlas-xcache
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post [email protected]
%preun -n atlas-xcache
%systemd_preun [email protected]
Expand All @@ -111,6 +115,7 @@ Requires: xrootd-lcmaps >= 1.5.1
%description -n cms-xcache
%{summary}
%post -n cms-xcache
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post [email protected] [email protected]
%preun -n cms-xcache
%systemd_preun [email protected] [email protected]
Expand All @@ -124,6 +129,7 @@ Requires: %{name} = %{version}
%description -n xcache-redirector
%{summary}
%post -n xcache-redirector
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%systemd_post [email protected] [email protected]
%preun -n xcache-redirector
%systemd_preun [email protected] [email protected]
Expand Down

0 comments on commit 57b1ec7

Please sign in to comment.