Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
slapos
Commits
62aa001f
Commit
62aa001f
authored
Apr 10, 2017
by
Tomáš Peterka
Committed by
Rafael Monnerat
Jun 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LTE: Add simple systemd launcher of LTE service
/reviewed-on
nexedi/slapos!157
parent
e7f16df6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
0 deletions
+89
-0
software/unstable/lte/instance.jinja2.cfg
software/unstable/lte/instance.jinja2.cfg
+38
-0
software/unstable/lte/lte.sh
software/unstable/lte/lte.sh
+14
-0
software/unstable/lte/readme.rst
software/unstable/lte/readme.rst
+9
-0
software/unstable/lte/software.cfg
software/unstable/lte/software.cfg
+28
-0
No files found.
software/unstable/lte/instance.jinja2.cfg
0 → 100644
View file @
62aa001f
#
# Deploy LTE instance
#
[buildout]
parts =
directory
lte
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = ${slap_connection:computer_id}
partition = ${slap_connection:partition_id}
url = ${slap_connection:server_url}
key = ${slap_connection:key_file}
cert = ${slap_connection:cert_file}
[directory]
recipe = slapos.cookbook:mkdirectory
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
[lte]
recipe = slapos.recipe.build:download
url = {{ buildout['directory'] }}/lte.sh
destination = ${directory:service}/lte.sh
mode = 0775
md5sum = 9de4c400d411083d8ecd8d03d62b97f0
software/unstable/lte/lte.sh
0 → 100644
View file @
62aa001f
#!/bin/bash
function
stopLTE
{
sudo
/bin/systemctl stop lte
echo
"LTE service stopped"
exit
0
}
trap
stopLTE TERM INT KILL
sudo
/bin/systemctl start lte
while
((
1
))
;
do
sleep
1
done
software/unstable/lte/readme.rst
0 → 100644
View file @
62aa001f
LTE eNodeB software release
###########################
Simple software release which starts LTE service upon instantiation.
LTE is managed by systemd and we are taking advantage of this.
It is necessary to install SlapOS from "amarisoft" branch because
it has modified ``slapos node format`` to give group ``slapsoft``
the rights to operate ``systemctl <start/stop/enable/disable> lte``.
software/unstable/lte/software.cfg
0 → 100644
View file @
62aa001f
[buildout]
extends =
../../../stack/slapos.cfg
parts =
slapos-cookbook
instance-profile
lte.sh
[instance-profile]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.jinja2.cfg
rendered = ${buildout:directory}/instance.cfg
md5sum = 3bbbb5297db5dd49f5dfc158e4291d4c
mode = 0644
extensions = jinja2.ext.do
context =
section buildout buildout
[copy-to-instance]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_}
destination = ${buildout:directory}/${:_buildout_section_name_}
[lte.sh]
<= copy-to-instance
md5sum = 9de4c400d411083d8ecd8d03d62b97f0
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