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
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
Léo-Paul Géneau
slapos
Commits
4b84b1ff
Commit
4b84b1ff
authored
Oct 16, 2019
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
randomsleep: cleanup
parent
eb4fc00a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
component/randomsleep/buildout.cfg
component/randomsleep/buildout.cfg
+5
-5
No files found.
component/randomsleep/buildout.cfg
View file @
4b84b1ff
...
@@ -7,16 +7,16 @@ extends =
...
@@ -7,16 +7,16 @@ extends =
recipe = slapos.recipe.build
recipe = slapos.recipe.build
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
bin_dir = ${buildout:bin-directory}
bin_dir = ${buildout:bin-directory}
bash_script_code =
bash_script_code =
if [ "$#" -ne 1 ]; then
if [ "$#" -ne 1 ]; then
echo "usage: randomsleep maxseconds"
echo "usage: randomsleep maxseconds"
exit
exit
fi
fi
${coreutils:location}/bin/sleep $((RANDOM % $1)).$((RANDOM % 100
))
exec ${coreutils:location}/bin/sleep $((RANDOM * $1 >> 15)).$((RANDOM * 100 >> 15
))
wrapper_script_code =
wrapper_script_code =
#!${bash:location}/bin/bash
#!${bash:location}/bin/bash
${bash:location}/bin/bash ${:location}/randomsleep.bash "$@"
. ${:location}/randomsleep.bash
script =
script =
os.makedirs(self.options['location'])
os.makedirs(self.options['location'])
bash_script_path = os.path.join(self.options['location'], 'randomsleep.bash')
bash_script_path = os.path.join(self.options['location'], 'randomsleep.bash')
...
...
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