Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
341df23f
Commit
341df23f
authored
Mar 28, 2019
by
Łukasz Nowak
Committed by
Łukasz Nowak
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend: Cleanup PIDFILE after reload
parent
f27a120e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+1
-1
software/caddy-frontend/templates/apache-lazy-script-call.sh.in
...re/caddy-frontend/templates/apache-lazy-script-call.sh.in
+2
-0
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
341df23f
...
@@ -102,7 +102,7 @@ md5sum = ac17212a53be2c08ab84682ec665148d
...
@@ -102,7 +102,7 @@ md5sum = ac17212a53be2c08ab84682ec665148d
[template-caddy-lazy-script-call]
[template-caddy-lazy-script-call]
filename = templates/apache-lazy-script-call.sh.in
filename = templates/apache-lazy-script-call.sh.in
md5sum =
ebe5d3d19923eb812a40019cb11276d8
md5sum =
b9f73f6323f9fceea054c46c854d2862
[template-graceful-script]
[template-graceful-script]
filename = templates/graceful-script.sh.in
filename = templates/graceful-script.sh.in
...
...
software/caddy-frontend/templates/apache-lazy-script-call.sh.in
View file @
341df23f
...
@@ -9,6 +9,7 @@ if [ ! -f $PIDFILE ]; then
...
@@ -9,6 +9,7 @@ if [ ! -f $PIDFILE ]; then
echo
$PID
>
$PIDFILE
echo
$PID
>
$PIDFILE
sleep
{{
wait_time
}}
sleep
{{
wait_time
}}
{{
lazy_command
}}
{{
lazy_command
}}
rm
-f
$PIDFILE
else
else
ps
--pid
`
cat
$PIDFILE
`
&>/dev/null
ps
--pid
`
cat
$PIDFILE
`
&>/dev/null
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
...
@@ -17,6 +18,7 @@ else
...
@@ -17,6 +18,7 @@ else
echo
$PID
>
$PIDFILE
echo
$PID
>
$PIDFILE
sleep
{{
wait_time
}}
sleep
{{
wait_time
}}
{{
lazy_command
}}
{{
lazy_command
}}
rm
-f
$PIDFILE
fi
fi
fi
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