Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
XRootD-Caching-Setup
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
Container registry
Model registry
Operate
Environments
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
ETP-HTC
XRootD-Caching-Setup
Commits
8cd0c28c
Commit
8cd0c28c
authored
7 years ago
by
Christoph Heidecker
Committed by
root
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Created two services for manager and server
parent
3f14960a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
systemd/xrootd-daemon.sh
+20
-6
20 additions, 6 deletions
systemd/xrootd-daemon.sh
systemd/xrootd.service
+0
-15
0 additions, 15 deletions
systemd/xrootd.service
with
20 additions
and
21 deletions
systemd/xrootd-daemon.sh
+
20
−
6
View file @
8cd0c28c
...
...
@@ -9,8 +9,11 @@ INSTANCE="XRootD"
# XRootD installation path
XRD_PATH
=
/opt/XRootD
# XRootD config path
CONFIG
=
'/opt/XRootD/configs/xrootd.cf'
# XRootD logging directory
LOGDIR
=
/var/log/XRootD
LOGDIR
=
'
/var/log/XRootD
'
# Service PID file
PIDFILE
=
/var/run/xrootd.pid
...
...
@@ -19,9 +22,20 @@ PIDFILE=/var/run/xrootd.pid
#export LD_LIBRARY_PATH=$XRD_PATH/xrd-install/lib64:$LD_LIBRARY_PATH
#export PATH=$XRD_PATH/xrd-install/bin:$PATH
ACTION
=
''
while
getopts
'a:c:l:'
flag
;
do
case
"
${
flag
}
"
in
a
)
ACTION
=
"
${
OPTARG
}
"
;;
c
)
CONFIG
=
"
${
OPTARG
}
"
;;
l
)
LOGDIR
=
"
${
OPTARG
}
"
;;
*
)
error
"Unexpected option
${
flag
}
"
;;
esac
done
# Starting command for XRootD services
XROOTD_COMMAND
=
'xrootd -c '
$
XRD_PATH
'/configs/proxy-server.cf
-l '
$LOGDIR
'/
proxy-server-
xrootd.log -k 100m &'
CMSD_COMMAND
=
'cmsd -c '
$
XRD_PATH
'/configs/proxy-server.cf
-l '
$LOGDIR
'/
proxy-server-
cmsd.log -k 100m &'
XROOTD_COMMAND
=
'xrootd -c '
$
CONFIG
'
-l '
$LOGDIR
'/xrootd.log -k 100m &'
CMSD_COMMAND
=
'cmsd -c '
$
CONFIG
'
-l '
$LOGDIR
'/cmsd.log -k 100m &'
# Check for running service processes
if
[
-f
$PIDFILE
]
...
...
@@ -29,7 +43,7 @@ then
PID
=
`
cat
$PIDFILE
`
fi
case
"
$
1
"
in
case
"
$
ACTION
"
in
'start'
)
if
[
-f
$PIDFILE
]
;
then
if
test
`
ps
-e
|
grep
-c
$PID
`
=
1
;
then
...
...
@@ -63,9 +77,9 @@ case "$1" in
;;
'restart'
)
$0
stop
$0
-a
stop
-l
$LOGDIR
-c
$CONFIG
sleep
5
$0
start
$0
-a
start
-l
$LOGDIR
-c
$CONFIG
;;
'status'
)
...
...
This diff is collapsed.
Click to expand it.
systemd/xrootd.service
deleted
100644 → 0
+
0
−
15
View file @
3f14960a
[Unit]
Description
=
XRootD-Services
After
=
syslog.target network.target
Wants
=
network.target
[Service]
User
=
xrootd
Type
=
simple
RemainAfterExit
=
yes
ExecStart
=
/bin/sh /opt/XRootD/systemd/xrootd-daemon.sh start
ExecStop
=
/bin/sh /opt/XRootD/systemd/xrootd-daemon.sh stop
[Install]
WantedBy
=
multi-user.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