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
b3e8d061
Commit
b3e8d061
authored
7 years ago
by
Christoph Heidecker
Committed by
root
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes to systemd-service
parent
122c7771
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
systemd/xrootd-daemon.sh
+9
-9
9 additions, 9 deletions
systemd/xrootd-daemon.sh
with
9 additions
and
9 deletions
systemd/xrootd-daemon.sh
+
9
−
9
View file @
b3e8d061
...
...
@@ -35,18 +35,18 @@ case "$1" in
echo
"Not starting
$INSTANCE
- instance already running with PID:
$PID
"
else
echo
"Starting
$INSTANCE
"
#
echo "Starting $INSTANCE" > $LOGDIR
cd
$
PDIR
nohup
$COMMAND
&>> /dev/null &
#
nohup $COMMAND &>> $LOGDIR &
echo
"Starting
$INSTANCE
"
>
$LOGDIR
/service.log
cd
$
XRD_PATH
#
nohup $COMMAND &>> /dev/null &
nohup
$COMMAND
&>>
$LOGDIR
&
echo
$!
>
$PIDFILE
fi
else
echo
"Starting
$INSTANCE
"
#
echo "Starting $INSTANCE" > $LOGDIR
cd
$
PDIR
nohup
$COMMAND
&>> /dev/null &
#
nohup $COMMAND &>> $LOGDIR &
echo
"Starting
$INSTANCE
"
>
$LOGDIR
/service.log
cd
$
XRD_PATH
#
nohup $COMMAND &>> /dev/null &
nohup
$COMMAND
&>>
$LOGDIR
&
echo
$!
>
$PIDFILE
fi
;;
...
...
@@ -54,7 +54,7 @@ case "$1" in
'stop'
)
if
[
-f
$PIDFILE
]
;
then
echo
"stopping
$INSTANCE
"
#
echo "stopping $INSTANCE" >> $LOGDIR
echo
"stopping
$INSTANCE
"
>>
$LOGDIR
/service.log
kill
-15
$PID
else
echo
"Cannot stop
$INSTANCE
- no Pidfile found!"
...
...
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