Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
0259789c
Commit
0259789c
authored
Mar 05, 2018
by
Eric Cano
Browse files
Added explicit systemctl daemon-reload to post (un) install scripts of rpms.
The systemd support macro for rpm did not include this support.
parent
224350d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
cta.spec.in
View file @
0259789c
...
...
@@ -16,6 +16,10 @@
#-------------------------------------
%define skip_unit_tests @SKIP_UNIT_TESTS@
# Utility for reloading systemctl when needed
#--------------------------------------------
%define systemdDaemonReload() if [ -e /usr/bin/systemctl ] ; then /usr/bin/systemctl daemon-reload; fi
# General settings
#-----------------
Summary: CERN Tape Archive
...
...
@@ -122,12 +126,14 @@ The tape server daemon
%post -n cta-taped
%systemd_post cta-taped.service
%systemdDaemonReload
%preun -n cta-taped
%systemd_preun cta-taped.service
%postun -n cta-taped
%systemd_postun cta-taped.service
%systemdDaemonReload
%package -n cta-frontend
Summary: CERN Tape Archive: Xrootd plugin
...
...
@@ -155,6 +161,7 @@ The xroot plugin
%post -n cta-frontend
/sbin/ldconfig
%systemd_post cta-frontend.service
%systemdDaemonReload
%preun -n cta-frontend
%systemd_preun cta-frontend.service
...
...
@@ -162,6 +169,7 @@ The xroot plugin
%postun -n cta-frontend
/sbin/ldconfig
%systemd_post cta-frontend.service
%systemdDaemonReload
%package -n cta-cli
Summary: CERN Tape Archive: command line interface
...
...
@@ -313,12 +321,14 @@ Tools to faciliate working with rmcd and smc in cta
%post -n cta-rmcd
%systemd_post cta-rmcd.service
%systemdDaemonReload
%preun -n cta-rmcd
%systemd_preun cta-rmcd.service
%postun -n cta-rmcd
%systemd_postun cta-rmcd.service
%systemdDaemonReload
%package -n cta-tape-developer-acs-tools
Summary: Cern Advanced mass STORage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment