Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
34694363
Commit
34694363
authored
Mar 30, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up the HSS termination procedure using the screen command
parent
e9c6872b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ci-scripts/epc.py
ci-scripts/epc.py
+2
-3
No files found.
ci-scripts/epc.py
View file @
34694363
...
...
@@ -126,7 +126,6 @@ class EPCManagement():
mySSH
.
command
(
'mkdir -p '
+
self
.
EPCSourceCodePath
+
'/scripts'
,
'\$'
,
5
)
mySSH
.
command
(
'cd /opt/hss_sim0609'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S rm -f hss.log daemon.log'
,
'\$'
,
5
)
#mySSH.command('echo ' + self.EPCPassword + ' | sudo -S echo "Starting sudo session" && sudo daemon --unsafe --name=simulated_hss --chdir=/opt/hss_sim0609 ./starthss_real ', '\$', 5)
mySSH
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S echo "Starting sudo session" && sudo su -c "screen -dm -S simulated_hss ./starthss"'
,
'\$'
,
5
)
else
:
logging
.
error
(
'This option should not occur!'
)
...
...
@@ -288,10 +287,10 @@ class EPCManagement():
elif
re
.
match
(
'ltebox'
,
self
.
EPCType
,
re
.
IGNORECASE
):
mySSH
.
command
(
'cd '
+
self
.
EPCSourceCodePath
,
'\$'
,
5
)
mySSH
.
command
(
'cd scripts'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S daemon --name=simulated_hss --stop'
,
'\$'
,
5
)
#
mySSH.command('echo ' + self.EPCPassword + ' | sudo -S daemon --name=simulated_hss --stop', '\$', 5)
time
.
sleep
(
1
)
#mySSH.command('echo ' + self.EPCPassword + ' | sudo -S killall --signal SIGKILL hss_sim', '\$', 5)
mySSH
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo
killall hss_sim
'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo
screen -X -S simulated_hss quit
'
,
'\$'
,
5
)
else
:
logging
.
error
(
'This should not happen!'
)
mySSH
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment