Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HTTP.sh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Laura x Dominika x Patrycja
HTTP.sh
Commits
3e01d114
Commit
3e01d114
authored
Oct 05, 2020
by
Dominika Liberda
💽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ some logs for workers [WRKR]
parent
e84efbc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
.gitignore
.gitignore
+2
-0
http.sh
http.sh
+2
-2
src/worker.sh
src/worker.sh
+2
-1
No files found.
.gitignore
0 → 100644
View file @
3e01d114
secret/*
app
http.sh
View file @
3e01d114
...
...
@@ -46,14 +46,14 @@ LauraIsCute
exit
0
fi
echo
"HTTP.sh"
source
src/worker.sh
if
[[
-f
"
${
cfg
[namespace]
}
/config.sh"
]]
;
then
source
"
${
cfg
[namespace]
}
/config.sh"
fi
echo
"HTTP.sh"
if
[[
${
cfg
[http]
}
==
true
]]
;
then
echo
"[HTTP] listening on
${
cfg
[ip]
}
:
${
cfg
[port]
}
"
ncat
-v
-l
${
cfg
[ip]
}
${
cfg
[port]
}
-c
./src/server.sh
-k
2>> /dev/null &
...
...
src/worker.sh
View file @
3e01d114
...
...
@@ -5,6 +5,7 @@
# worker_add(name, interval)
function
worker_add
()
{
if
[[
-x
"
${
cfg
[namespace]
}
/workers/
$1
/worker.sh"
]]
;
then
echo
"[WRKR] adding worker
$1
"
while
true
;
do
source
"
${
cfg
[namespace]
}
/workers/
$1
/worker.sh"
sleep
$2
...
...
@@ -20,7 +21,7 @@ function worker_add() {
fi
done
&
else
echo
"
You have a broken worker configuration! Please check if worker.sh in worker
$1
is executable.
"
echo
"
[WRKR] Broken config - workers/
$1
/worker.sh does not exist, or is not executable?
"
fi
}
...
...
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