Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
ssh-tunnel-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
open-source
ssh-tunnel-manager
Commits
7e40fb9b
Commit
7e40fb9b
authored
10 years ago
by
Gerhard
Browse files
Options
Downloads
Patches
Plain Diff
added return code for the status check
parent
b8e0d07c
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
ssh-tunnel-manager.sh
+3
-0
3 additions, 0 deletions
ssh-tunnel-manager.sh
with
3 additions
and
0 deletions
ssh-tunnel-manager.sh
+
3
−
0
View file @
7e40fb9b
...
...
@@ -318,13 +318,16 @@ case $COMMAND in
if
[[
"
$RESULT
"
-gt
"0"
]]
;
then
echotime
"STATUS - Status of Tunnel ID
$idx
is ... running"
echo
"Status of Tunnel ID
$idx
is ... running"
EXIT_CODE
=
0
else
echotime
"STATUS - Status of Tunnel ID
$idx
is ... NOT running"
echo
"Status of Tunnel ID
$idx
is ... NOT running"
EXIT_CODE
=
1
fi
done
echotime
"COMM - Execute STATUS procedure ... Done"
echotime
""
exit
$EXIT_CODE
;;
show
)
...
...
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