Skip to content
Snippets Groups Projects
Commit 02cfd56c authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan :coffee:
Browse files

cta-dcache: add /etc/sysconfig/cta-dcache config file

parent d566c08c
No related branches found
No related tags found
No related merge requests found
......@@ -59,4 +59,5 @@ target_link_libraries(cta-dcache ${PROTOBUF3_LIBRARIES} ${GRPC_GRPC++_LIBRARY}
set_property(TARGET cta-dcache APPEND PROPERTY INSTALL_RPATH ${PROTOBUF3_RPATH})
install(TARGETS cta-dcache DESTINATION usr/bin)
install (FILES cta-dcache.service DESTINATION etc/systemd/system)
\ No newline at end of file
install (FILES cta-dcache.service DESTINATION etc/systemd/system)
install (FILES cta-dcache.sysconfig DESTINATION /etc/sysconfig RENAME cta-dcache)
\ No newline at end of file
......@@ -3,7 +3,8 @@ Description=dCache frontend for CERN Tape Archive (CTA)
After=syslog.target network-online.target
[Service]
ExecStart=/usr/bin/cta-dcache
EnvironmentFile=/etc/sysconfig/cta-dcache
ExecStart=/usr/bin/cta-dcache --no-log-header --port ${GRPC_PORT}
Type=simple
Restart=always
User=cta
......
#
# Config properties of cta-dcache
#
# port number to accept TCP connections
GRPC_PORT=17017
\ No newline at end of file
......@@ -190,6 +190,7 @@ dCache frontend
%defattr(0755,root,root)
%attr(0755,root,root) %{_bindir}/cta-dcache
%attr(0644,root,root) /etc/systemd/system/cta-dcache.service
%attr(0644,root,root) /etc/sysconfig/cta-dcache
%post -n cta-dcache
%systemd_post cta-dcache.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment