Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Warp Proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Warp Proxy
Commits
77ee9885
Commit
77ee9885
authored
Sep 07, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix daemon down
parent
f39a194f
Pipeline
#16424
passed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
entrypoint.sh
entrypoint.sh
+17
-10
No files found.
entrypoint.sh
View file @
77ee9885
#!/bin/bash
echo
''
>
/var/lib/cloudflare-warp/cfwarp_service_log.txt
warp-svc &
daemonReady
=
1
while
[[
"
$daemonReady
"
!=
"0"
]]
;
do
echo
"Waiting for daemon start"
grep
"cloudflare-warp/warp_service"
/var/lib/cloudflare-warp/cfwarp_service_log.txt
daemonReady
=
$?
done
echo
"Daemon started"
daemonPid
=
0
initProxy
()
{
warp-svc &
daemonPid
=
$!
daemonReady
=
1
while
[[
"
$daemonReady
"
!=
"0"
]]
;
do
echo
"Waiting for daemon start"
grep
"cloudflare-warp/warp_service"
/var/lib/cloudflare-warp/cfwarp_service_log.txt
daemonReady
=
$?
done
echo
"Daemon started"
if
[[
!
-f
"/var/lib/cloudflare-warp/reg.json"
]]
;
then
if
[[
-n
"
$WARP_LICENSE
"
]]
;
then
warp-cli
--accept-tos
set-license
"
$WARP_LICENSE
"
...
...
@@ -24,6 +26,11 @@ initProxy() {
warp-cli connect
}
restartProxy
()
{
kill
$daemonPid
initProxy
}
watcher
()
{
workedOnce
=
0
while
true
;
do
...
...
@@ -35,7 +42,7 @@ watcher() {
echo
"Proxy is still starting up"
else
echo
"Proxy is down, restarting"
ini
tProxy
restar
tProxy
fi
sleep
10
else
...
...
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