Commit 4f18f568 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

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

parent 1504fccc
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment