Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
9277f1ec
Commit
9277f1ec
authored
3 years ago
by
Tigran Mkrtchyan
Browse files
Options
Downloads
Patches
Plain Diff
cta-dcache: rename frontend-grpc into cta-dcache + systemd
parent
f6911963
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cta.spec.in
+19
-6
19 additions, 6 deletions
cta.spec.in
frontend_svc/gRPC/CMakeLists.txt
+5
-4
5 additions, 4 deletions
frontend_svc/gRPC/CMakeLists.txt
frontend_svc/gRPC/cta-dcache.service
+13
-0
13 additions, 0 deletions
frontend_svc/gRPC/cta-dcache.service
with
37 additions
and
10 deletions
cta.spec.in
+
19
−
6
View file @
9277f1ec
...
...
@@ -176,19 +176,32 @@ The xroot plugin
%systemd_post cta-frontend.service
%systemdDaemonReload
%package -n cta-
frontend-grpc
Summary: CERN Tape Archive:
gRPC based
frontend
%package -n cta-
dcache
Summary: CERN Tape Archive:
dCache compatibility
frontend
Group: Application/CTA
Requires: logrotate
Requires: cta-common = %{version}-%{release}
Requires: cta-lib = %{version}-%{release}
Requires: cta-lib-catalogue = %{version}-%{release}
%description -n cta-
frontend-grpc
%description -n cta-
dcache
CERN Tape Archive:
gRPC based
frontend
%files -n cta-
frontend-grpc
dCache
frontend
%files -n cta-
dcache
%defattr(0755,root,root)
%attr(0755,root,root) %{_bindir}/frontend-grpc-svc
%attr(0755,root,root) %{_bindir}/cta-dcache
%attr(0644,root,root) /etc/systemd/system/cta-dcache.service
%post -n cta-dcache
%systemd_post cta-dcache.service
%systemdDaemonReload
%systemdTryRestart cta-dcache.service
%preun -n cta-dcache
%systemd_preun cta-dcache.service
%postun -n cta-dcache
%systemd_postun cta-dcache.service
%systemdDaemonReload
%package -n cta-cli
Summary: CERN Tape Archive: command line interface
...
...
This diff is collapsed.
Click to expand it.
frontend_svc/gRPC/CMakeLists.txt
+
5
−
4
View file @
9277f1ec
...
...
@@ -20,11 +20,12 @@ find_package(Protobuf3 REQUIRED)
include_directories
(
${
CMAKE_BINARY_DIR
}
/eos_cta
${
PROTOBUF3_INCLUDE_DIRS
}
)
add_executable
(
frontend-grpc-svc
FrontendGRpcSvc.cpp
)
add_executable
(
cta-dcache
FrontendGRpcSvc.cpp
)
target_link_libraries
(
frontend-grpc-svc
CtaGRpc
target_link_libraries
(
cta-dcache
CtaGRpc
${
PROTOBUF3_LIBRARIES
}
${
GRPC_GRPC++_LIBRARY
}
ctascheduler ctacommon ctaobjectstore ctacatalogue
)
set_property
(
TARGET
frontend-grpc-svc
APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
set_property
(
TARGET
cta-dcache
APPEND PROPERTY INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
install
(
TARGETS frontend-grpc-svc DESTINATION usr/bin
)
\ No newline at end of file
install
(
TARGETS cta-dcache DESTINATION usr/bin
)
install
(
FILES cta-dcache.service DESTINATION etc/systemd/system
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
frontend_svc/gRPC/cta-dcache.service
0 → 100644
+
13
−
0
View file @
9277f1ec
[Unit]
Description
=
dCache frontend for CERN Tape Archive (CTA)
After
=
syslog.target network-online.target
[Service]
ExecStart
=
/usr/bin/cta-dcache
Type
=
simple
Restart
=
always
User
=
cta
Group
=
cta
[Install]
WantedBy
=
default.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment