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
009e2c04
Commit
009e2c04
authored
10 years ago
by
Gerhard
Browse files
Options
Downloads
Patches
Plain Diff
updated initscript; updated script to comply to init return codes
parent
f55054fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ssh-tunnel-manager.sh
+4
-4
4 additions, 4 deletions
ssh-tunnel-manager.sh
ssh-tunnel-manager.sysv-initscript
+1
-2
1 addition, 2 deletions
ssh-tunnel-manager.sysv-initscript
with
5 additions
and
6 deletions
ssh-tunnel-manager.sh
+
4
−
4
View file @
009e2c04
...
...
@@ -287,7 +287,7 @@ case $COMMAND in
COMMAND_INDEX
=
$(
get_id_from_name
"
$COMMAND_INDEX_NAME
"
)
if
[[
"
$COMMAND_INDEX
"
-eq
"-1"
]]
;
then
echo
"The tunnel with the name '
$COMMAND_INDEX_NAME
' can not be found."
exit
1
exit
6
fi
IDX_START
=
$COMMAND_INDEX
IDX_END
=
$((
COMMAND_INDEX+1
))
...
...
@@ -339,7 +339,7 @@ case $COMMAND in
COMMAND_INDEX
=
$(
get_id_from_name
"
$COMMAND_INDEX_NAME
"
)
if
[[
"
$COMMAND_INDEX
"
-eq
"-1"
]]
;
then
echo
"The tunnel with the name '
$COMMAND_INDEX_NAME
' can not be found."
exit
1
exit
3
fi
IDX_START
=
$COMMAND_INDEX
IDX_END
=
$((
COMMAND_INDEX+1
))
...
...
@@ -361,7 +361,7 @@ case $COMMAND in
else
echotime
"STATUS - Status of Tunnel '
${
TUNNEL_NAMES
[
$idx
]
}
' (ID
$idx
) is ... NOT running"
echo
"Status of Tunnel '
${
TUNNEL_NAMES
[
$idx
]
}
' is ... NOT running"
EXIT_CODE
=
1
EXIT_CODE
=
3
fi
done
echotime
"COMM - Execute STATUS procedure ... Done"
...
...
@@ -385,7 +385,7 @@ case $COMMAND in
COMMAND_INDEX
=
$(
get_id_from_name
"
$COMMAND_INDEX_NAME
"
)
if
[[
"
$COMMAND_INDEX
"
-eq
"-1"
]]
;
then
echo
"The tunnel with the name '
$COMMAND_INDEX_NAME
' can not be found."
exit
1
exit
6
fi
IDX_START
=
$COMMAND_INDEX
IDX_END
=
$((
COMMAND_INDEX+1
))
...
...
This diff is collapsed.
Click to expand it.
ssh-tunnel-manager.sysv-initscript
+
1
−
2
View file @
009e2c04
...
...
@@ -38,8 +38,7 @@ stop() {
}
restart
()
{
stop
start
$exec
restart
}
rh_status
()
{
...
...
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