Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
7ed35bf2
Commit
7ed35bf2
authored
13 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
pridan vypis PIDu po startu a stopnuti serveru
parent
9f83726f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-server/bin/wardend
+4
-1
4 additions, 1 deletion
src/warden-server/bin/wardend
with
4 additions
and
1 deletion
src/warden-server/bin/wardend
+
4
−
1
View file @
7ed35bf2
...
...
@@ -80,10 +80,12 @@ warden_start() {
check_status
if
[
$STATUS
-eq
1
]
;
then
get_pid PID
echo
"Warden daemon is running (pid
$PID
)."
echo
"Warden
server
daemon is running (pid
$PID
)."
else
logger
-s
"Starting Warden server daemon ..."
$DAEMON
PID
=
`
cat
$PID_FILE
`
logger
-s
"Warden server daemon is running (pid
$PID
)."
touch
$LOCK_FILE
fi
}
...
...
@@ -96,6 +98,7 @@ warden_stop() {
PID
=
`
cat
$PID_FILE
`
kill
-1
$PID
rm
-f
$LOCK_FILE
logger
-s
"Warden server daemon is stopped (pid
$PID
)."
else
echo
"Unable to stop Warden server daemon. Try to use:
$SCRIPTNAME
force-stop"
fi
...
...
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