Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ci/spec/pre
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
%pre

if [ x"$(which systemctl)" != x"" ]; then
systemctl stop cvmfs-gateway
if [ "x$(systemctl list-unit-files | grep cvmfs-gateway)" != "x" ]; then
systemctl stop cvmfs-gateway
fi
else
/usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh stop
if [ -x /usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh ]; then
/usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh stop
fi
fi
8 changes: 6 additions & 2 deletions ci/spec/preun
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
%preun

if [ x"$(which systemctl)" != x"" ]; then
systemctl stop cvmfs-gateway
if [ "x$(systemctl list-unit-files | greo cvmfs-gateway)" != "x" ]; then
systemctl stop cvmfs-gateway
fi
else
/usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh stop
if [ -x /usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh ]; then
/usr/libexec/cvmfs-gateway/scripts/run_cvmfs_gateway.sh stop
fi
fi